Description
Off-by-one error in the fb_realpath() function, as derived from the realpath function in BSD, may allow attackers to execute arbitrary code, as demonstrated in wu-ftpd 2.5.0 through 2.6.2 via commands that cause pathnames of length MAXPATHLEN+1 to trigger a buffer overflow, including (1) STOR, (2) RETR, (3) APPE, (4) DELE, (5) MKD, (6) RMD, (7) STOU, or (8) RNTO.
CVSS breakdown
CVSS 3.1
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Affected products
- Apple / mac_os_x10.2.6 – 10.2.6
- Apple / mac_os_x_server10.2.6 – 10.2.6
- FreeBSD / FreeBSD4.0 – 5.0
- NetBSD / netbsd1.5 – 1.6.1
- OpenBSD / OpenBSD2.0 – 3.3
- RedHat / wu_ftpd2.6.1-16 – 2.6.1-16
- sun / solaris9.0 – 9.0
- wuftpd / wu-ftpd2.5.0 – 2.6.2
Exploits & proofs of concept
- exploit-dbWU-FTPD 2.6.2 - Remote Command Executionby Xpl017Elz
- exploit-dbWU-FTPD 2.6.0/2.6.1/2.6.2 - 'realpath()' Off-by-One Buffer Overflowby Xpl017Elz
- exploit-dbWU-FTPD 2.6.2 - Off-by-One Remote Command Executionby Xpl017Elz
- exploit-dbWU-FTPD 2.6.2 - 'realpath()' Off-by-One Buffer Overflowby Xpl017Elz
- exploit-dbFreeBSD 4.8 - 'realpath()' Off-by-One Buffer Overflowby daniels@legend.co.uk
References
- MAILING_LISThttp://marc.info/?l=bugtraq&m=106002488209129&w=2
- MISChttp://isec.pl/vulnerabilities/isec-0011-wu-ftpd.txt
- VENDOR_ADVISORYhttp://secunia.com/advisories/9446
- MISChttp://www.osvdb.org/6602
- MISChttps://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1970
- MISChttp://www.securityfocus.com/archive/1/424852/100/0/threaded
- MISChttp://www.securityfocus.com/bid/8315
- VENDOR_ADVISORYhttp://secunia.com/advisories/9423
- MAILING_LISThttp://marc.info/?l=bugtraq&m=105967301604815&w=2
- MISChttp://archives.neohapsis.com/archives/vulnwatch/2003-q3/0065.html
- MISChttp://download.immunix.org/ImmunixOS/7+/Updates/errata/IMNX-2003-7+-019-01
- MISChttp://www.redhat.com/support/errata/RHSA-2003-246.html
- MISChttp://www.securityfocus.com/archive/1/425061/100/0/threaded
- MISChttp://www.kb.cert.org/vuls/id/743092
- MISChttp://www.redhat.com/support/errata/RHSA-2003-245.html
- VENDOR_ADVISORYhttp://www.novell.com/linux/security/advisories/2003_032_wuftpd.html
- MISChttp://sunsolve.sun.com/search/document.do?assetkey=1-77-1001257.1-1
- VENDOR_ADVISORYhttp://www.debian.org/security/2003/dsa-357
- MAILING_LISThttp://marc.info/?l=bugtraq&m=106001702232325&w=2
- MISChttp://securitytracker.com/id?1007380
- VENDOR_ADVISORYhttp://www.mandriva.com/security/advisories?name=MDKSA-2003:080
- MISChttps://exchange.xforce.ibmcloud.com/vulnerabilities/12785
- MAILING_LISThttp://marc.info/?l=bugtraq&m=106001410028809&w=2
- MISChttp://www.turbolinux.com/security/TLSA-2003-46.txt
- VENDOR_ADVISORYftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2003-011.txt.asc
- VENDOR_ADVISORYhttp://secunia.com/advisories/9535
- VENDOR_ADVISORYhttp://secunia.com/advisories/9447
Updated 18m ago · 8 sources