Threat level definition
Search:
Home
Bugtraq
Vulnerabilities
Mailing Lists
Jobs
Tools
Beta Programs
News
Infocus
Foundations
Microsoft
Unix
IDS
Incidents
Virus
Pen-Test
Firewalls
Columnists
Mailing Lists
Newsletters
Bugtraq
Focus on IDS
Focus on Linux
Focus on Microsoft
Forensics
Pen-test
Security Basics
Vuln Dev
Vulnerabilities
Jobs
Job Opportunities
Resumes
Job Seekers
Employers
Tools
RSS
News
Vulns
Security Research
BugTraq
Back to list
|
Post reply
ncpfs buffer overflow
Nov 29 2004 12:58PM
Karol Wiêsek (appelast drumnbass art pl)
-----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-----
[ reply ]
Privacy Statement
Copyright 2009, SecurityFocus
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-----
[ reply ]