Alec Berryman
2006-May-18 14:13 UTC
[Secure-testing-team] Bug#367858: zoo: CVE-2006-1269: local arbitrary code execution
Package: zoo Severity: normal Tags: security patch -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 CVE-2006-1269: "Buffer overflow in the parse function in parse.c in zoo 2.10 might allow local users to execute arbitrary code via long filename command line arguments, which are not properly handled during archive creation. NOTE: since this issue is local and not setuid, the set of attack scenarios is limited, although is reasonable to expect that there are some situations in which the zoo user might automatically list attacker-controlled filenames to add to the zoo archive." - From https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=183426: Here is how to reproduce this issue: mkdir `perl -e ''print "A"x254''` cd `perl -e ''print "A"x254''` mkdir `perl -e ''print "A"x254''` cd `perl -e ''print "A"x254''` touch feh cd ../.. zoo a arch.zoo `perl -e ''print "A"x254 . "/" . "A"x254 . "/feh"''` I have confirmed that Debian''s zoo_2.10-17 is vulnerable and do not see that this issue has been fixed for sarge/woody. A dpatch for the fix (created from instructions in the Red Hat bugzilla entry) is included. After building with the patch, the test case no longer causes zoo to segfault. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEbHmkAud/2YgchcQRAoPgAJ4555MCCfeXVOCobjAqVo+mEZJttwCgnEP9 cJcitceTeZmZxn/5LhAABAY=FOHb -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: 05_CVE-2006-1269.dpatch Type: application/x-shellscript Size: 1111 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/secure-testing-team/attachments/20060518/8108a3c5/05_CVE-2006-1269.bin