Bugzilla – Bug 63702
VUL-0: CVE-2004-1079: ncpfs: buffer overflow
Last modified: 2021-10-17 14:56:33 UTC
Hello Olaf, this one was posted to Bugtraq. From: Karol WiÄsek <appelast@drumnbass.art.pl> User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) To: full-disclosure@lists.netsys.com, bugtraq@securityfocus.com Subject: [Full-Disclosure] ncpfs buffer overflow Errors-To: full-disclosure-admin@lists.netsys.com Date: Mon, 29 Nov 2004 13:58:02 +0100 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 There is buffer overflow in ncplogin and ncpmap in nwclient.c. static void strcpy_cw(wchar_t *w, const char* s) { ~ while ((*w++ = *(const nuint8*)s++) != 0); } NWDSCCODE NWDSCreateContextHandleMnt(NWDSContextHandle* ctx, const NWDSChar * treeName){ ... wchar_t wc_treeName[MAX_DN_CHARS+1]; ~ if (!treeName) ~ return ERR_NULL_POINTER; ~ strcpy_cw (wc_treeName,treeName); Currently i have not managed to successfully exploit this bug on x86. How to reproduce : ncplogin -T `perl -e '{print"a"x"330"}'` ncpmap -T `perl -e '{print"a"x"330"}'` / Tested on ncpfs-2.2.4-1 from fedora core 2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBqxzaFTSet8AbQUQRAiycAJ4+5YDHawXMrXiu2wPHt6IRN2Xx0wCeM7vm LpGHtO/7DHkoRO18OQwve4M= =YwvU -----END PGP SIGNATURE----- _______________________________________________
<!-- SBZ_reproduce --> ncplogin -T `perl -e '{print"a"x"330"}'` ncpmap -T `perl -e '{print"a"x"330"}'` /
swamp-id 569
Created attachment 26776 [details] patchinfo-box.ncpfs
Created attachment 26777 [details] patchinfo.ncpfs
CAN-2004-1079
SWAMPID: 61 I think there was something wrong above
Olaf, is something missing you need to handle this bug?
Created attachment 27033 [details] ncpfs-2.2.4-NWDSCreateContextHandleMnt.patch yes, the 48 hours day.
I have copied the patchinfo and the package to 8.1, 8.2, 9.0, 9.1 and 9.2 9.3 will get a version update.
packages are being build now.
updates have been released.
CVE-2004-1079: CVSS v2 Base Score: 7.2 (AV:L/AC:L/Au:N/C:C/I:C/A:C)