Classic FTP 'LIST' Command Directory Traversal Vulnerability
BID:29846
Info
Classic FTP 'LIST' Command Directory Traversal Vulnerability
| Bugtraq ID: | 29846 |
| Class: | Input Validation Error |
| CVE: |
CVE-2008-2894 |
| Remote: | Yes |
| Local: | No |
| Published: | Jun 20 2008 12:00AM |
| Updated: | May 07 2015 05:28PM |
| Credit: | Tan Chew Keong |
| Vulnerable: |
NCH Software Classic FTP 1.02 |
| Not Vulnerable: | |
Discussion
Classic FTP 'LIST' Command Directory Traversal Vulnerability
Classic FTP is prone to a directory-traversal vulnerability because the application fails to sufficiently sanitize user-supplied input.
Exploiting this issue allows an attacker to write arbitrary files to locations outside of the application's current directory. This could help the attacker launch further attacks.
Classic FTP 1.02 for Microsoft Windows is vulnerable; other versions may also be affected.
Classic FTP is prone to a directory-traversal vulnerability because the application fails to sufficiently sanitize user-supplied input.
Exploiting this issue allows an attacker to write arbitrary files to locations outside of the application's current directory. This could help the attacker launch further attacks.
Classic FTP 1.02 for Microsoft Windows is vulnerable; other versions may also be affected.
Exploit / POC
Classic FTP 'LIST' Command Directory Traversal Vulnerability
An attacker can exploit this issue by enticing an unsuspecting victim to connect to a malicious server.
The following proof of concept is available:
Response to LIST:
\..\..\..\..\..\..\..\..\..\testfile.txt\r\n
/../../../../../../../../../testfile.txt\r\n
An attacker can exploit this issue by enticing an unsuspecting victim to connect to a malicious server.
The following proof of concept is available:
Response to LIST:
\..\..\..\..\..\..\..\..\..\testfile.txt\r\n
/../../../../../../../../../testfile.txt\r\n
Solution / Fix
Classic FTP 'LIST' Command Directory Traversal Vulnerability
Solution:
Currently we are not aware of any vendor-supplied patches. If you feel we are in error or if you are aware of more recent information, please mail us at: [email protected].
Solution:
Currently we are not aware of any vendor-supplied patches. If you feel we are in error or if you are aware of more recent information, please mail us at: [email protected].
References
Classic FTP 'LIST' Command Directory Traversal Vulnerability
References:
References:
- Classic FTP FTP-Client Directory Traversal Vulnerability (Tan Chew Keong)
- FTP Software Page (NCH Software)