testdisk -- buffer overflow with malicious disk image
2015-04-30T00:00:00
ID C67069DC-0986-11E5-BB90-002590263BF5 Type freebsd Reporter FreeBSD Modified 2015-04-30T00:00:00
Description
CGSecurity TestDisk Changelog reports:
Various fix including security fix, thanks to:
Coverity scan (Static Analysis of source code)
afl-fuzz (security-oriented fuzzer).
Denis Andzakovic from Security Assessment for reporting an
exploitable Stack Buffer Overflow.
Denis Andzakovic reports:
A buffer overflow is triggered within the software when a malicious
disk image is attempted to be recovered. This may be leveraged by an
attacker to crash TestDisk and gain control of program execution. An
attacker would have to coerce the victim to run TestDisk against
their malicious image.
{"reporter": "FreeBSD", "published": "2015-04-30T00:00:00", "cvelist": [], "title": "testdisk -- buffer overflow with malicious disk image", "objectVersion": "1.2", "type": "freebsd", "hash": "ba851295a0da7e1e4c266be08b74d8ccc03ead66ccaa86723cd213a634ecc700", "href": "https://vuxml.freebsd.org/freebsd/c67069dc-0986-11e5-bb90-002590263bf5.html", "bulletinFamily": "unix", "hashmap": [{"hash": "cd217bf8a24c6b5cfa44f240a326ce69", "key": "affectedPackage"}, {"hash": "4913a9178621eadcdf191db17915fbcb", "key": "bulletinFamily"}, {"hash": "d41d8cd98f00b204e9800998ecf8427e", "key": "cvelist"}, {"hash": "8cd4821cb504d25572038ed182587d85", "key": "cvss"}, {"hash": "9393d118ba9a7b8ad775f411fb43f2bc", "key": "description"}, {"hash": "d6b7eb1c57ce431ce879c5e33ed9d79b", "key": "href"}, {"hash": "cb61d825e7a04d25144215f1cca88eaa", "key": "modified"}, {"hash": "56765472680401499c79732468ba4340", "key": "objectVersion"}, {"hash": "cb61d825e7a04d25144215f1cca88eaa", "key": "published"}, {"hash": "58bba3d71e9525fad4f709653e7461cb", "key": "references"}, {"hash": "a3dc630729e463135f4e608954fa6e19", "key": "reporter"}, {"hash": "f98c46c511144f09497122b0cb29b716", "key": "title"}, {"hash": "1527e888767cdce15d200b870b39cfd0", "key": "type"}, {"hash": "cfcd208495d565ef66e7dff9f98764da", "key": "viewCount"}], "history": [], "enchantments": {"score": {"value": 3.1, "vector": "NONE", "modified": "2016-09-26T17:24:18"}, "dependencies": {"references": [{"type": "nessus", "idList": ["FREEBSD_PKG_C67069DC098611E5BB90002590263BF5.NASL"]}], "modified": "2016-09-26T17:24:18"}, "vulnersScore": 3.1}, "modified": "2015-04-30T00:00:00", "affectedPackage": [{"OS": "FreeBSD", "OSVersion": "any", "packageVersion": "7.0", "operator": "lt", "packageName": "testdisk", "arch": "noarch", "packageFilename": "UNKNOWN"}], "cvss": {"score": 0.0, "vector": "NONE"}, "viewCount": 0, "edition": 1, "description": "\nCGSecurity TestDisk Changelog reports:\n\nVarious fix including security fix, thanks to:\n\nCoverity scan (Static Analysis of source code)\nafl-fuzz (security-oriented fuzzer).\nDenis Andzakovic from Security Assessment for reporting an\n\t exploitable Stack Buffer Overflow.\n\n\nDenis Andzakovic reports:\n\nA buffer overflow is triggered within the software when a malicious\n\t disk image is attempted to be recovered. This may be leveraged by an\n\t attacker to crash TestDisk and gain control of program execution. An\n\t attacker would have to coerce the victim to run TestDisk against\n\t their malicious image.\n\n", "references": ["http://www.cgsecurity.org/wiki/TestDisk_7.0_Release", "http://www.security-assessment.com/files/documents/advisory/Testdisk%20Check_OS2MB%20Stack%20Buffer%20Overflow%20-%20Release.pdf"], "id": "C67069DC-0986-11E5-BB90-002590263BF5", "lastseen": "2016-09-26T17:24:18"}
{"nessus": [{"lastseen": "2019-11-01T02:39:36", "bulletinFamily": "scanner", "description": "CGSecurity TestDisk Changelog reports :\n\nVarious fix including security fix, thanks to :\n\n- Coverity scan (Static Analysis of source code)\n\n- afl-fuzz (security-oriented fuzzer).\n\n- Denis Andzakovic from Security Assessment for reporting an\nexploitable Stack Buffer Overflow.\n\nDenis Andzakovic reports :\n\nA buffer overflow is triggered within the software when a malicious\ndisk image is attempted to be recovered. This may be leveraged by an\nattacker to crash TestDisk and gain control of program execution. An\nattacker would have to coerce the victim to run TestDisk against their\nmalicious image.", "modified": "2019-11-02T00:00:00", "id": "FREEBSD_PKG_C67069DC098611E5BB90002590263BF5.NASL", "href": "https://www.tenable.com/plugins/nessus/84224", "published": "2015-06-17T00:00:00", "title": "FreeBSD : testdisk -- buffer overflow with malicious disk image (c67069dc-0986-11e5-bb90-002590263bf5)", "type": "nessus", "sourceData": "#\n# (C) Tenable Network Security, Inc.\n#\n# The descriptive text and package checks in this plugin were \n# extracted from the FreeBSD VuXML database :\n#\n# Copyright 2003-2018 Jacques Vidrine and contributors\n#\n# Redistribution and use in source (VuXML) and 'compiled' forms (SGML,\n# HTML, PDF, PostScript, RTF and so forth) with or without modification,\n# are permitted provided that the following conditions are met:\n# 1. Redistributions of source code (VuXML) must retain the above\n# copyright notice, this list of conditions and the following\n# disclaimer as the first lines of this file unmodified.\n# 2. Redistributions in compiled form (transformed to other DTDs,\n# published online in any format, converted to PDF, PostScript,\n# RTF and other formats) must reproduce the above copyright\n# notice, this list of conditions and the following disclaimer\n# in the documentation and/or other materials provided with the\n# distribution.\n# \n# THIS DOCUMENTATION IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS \"AS IS\"\n# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\n# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS\n# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,\n# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\n# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR\n# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION,\n# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n#\n\ninclude(\"compat.inc\");\n\nif (description)\n{\n script_id(84224);\n script_version(\"2.3\");\n script_cvs_date(\"Date: 2018/11/23 12:49:57\");\n\n script_name(english:\"FreeBSD : testdisk -- buffer overflow with malicious disk image (c67069dc-0986-11e5-bb90-002590263bf5)\");\n script_summary(english:\"Checks for updated package in pkg_info output\");\n\n script_set_attribute(\n attribute:\"synopsis\", \n value:\"The remote FreeBSD host is missing a security-related update.\"\n );\n script_set_attribute(\n attribute:\"description\", \n value:\n\"CGSecurity TestDisk Changelog reports :\n\nVarious fix including security fix, thanks to :\n\n- Coverity scan (Static Analysis of source code)\n\n- afl-fuzz (security-oriented fuzzer).\n\n- Denis Andzakovic from Security Assessment for reporting an\nexploitable Stack Buffer Overflow.\n\nDenis Andzakovic reports :\n\nA buffer overflow is triggered within the software when a malicious\ndisk image is attempted to be recovered. This may be leveraged by an\nattacker to crash TestDisk and gain control of program execution. An\nattacker would have to coerce the victim to run TestDisk against their\nmalicious image.\"\n );\n # http://www.cgsecurity.org/wiki/TestDisk_7.0_Release\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://www.cgsecurity.org/wiki/TestDisk_7.0_Release\"\n );\n # http://www.security-assessment.com/files/documents/advisory/Testdisk%20Check_OS2MB%20Stack%20Buffer%20Overflow%20-%20Release.pdf\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?70f409e8\"\n );\n # https://vuxml.freebsd.org/freebsd/c67069dc-0986-11e5-bb90-002590263bf5.html\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?266930b1\"\n );\n script_set_attribute(attribute:\"solution\", value:\"Update the affected package.\");\n script_set_attribute(attribute:\"risk_factor\", value:\"High\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:freebsd:freebsd:testdisk\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:freebsd:freebsd\");\n\n script_set_attribute(attribute:\"vuln_publication_date\", value:\"2015/04/30\");\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2015/06/16\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2015/06/17\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_copyright(english:\"This script is Copyright (C) 2015-2018 and is owned by Tenable, Inc. or an Affiliate thereof.\");\n script_family(english:\"FreeBSD Local Security Checks\");\n\n script_dependencies(\"ssh_get_info.nasl\");\n script_require_keys(\"Host/local_checks_enabled\", \"Host/FreeBSD/release\", \"Host/FreeBSD/pkg_info\");\n\n exit(0);\n}\n\n\ninclude(\"audit.inc\");\ninclude(\"freebsd_package.inc\");\n\n\nif (!get_kb_item(\"Host/local_checks_enabled\")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);\nif (!get_kb_item(\"Host/FreeBSD/release\")) audit(AUDIT_OS_NOT, \"FreeBSD\");\nif (!get_kb_item(\"Host/FreeBSD/pkg_info\")) audit(AUDIT_PACKAGE_LIST_MISSING);\n\n\nflag = 0;\n\nif (pkg_test(save_report:TRUE, pkg:\"testdisk<7.0\")) flag++;\n\nif (flag)\n{\n if (report_verbosity > 0) security_hole(port:0, extra:pkg_report_get());\n else security_hole(0);\n exit(0);\n}\nelse audit(AUDIT_HOST_NOT, \"affected\");\n", "cvss": {"score": 0.0, "vector": "NONE"}}]}