PHPMyWebHosting SQL Injection Vulnerability
BID:10942
Info
PHPMyWebHosting SQL Injection Vulnerability
| Bugtraq ID: | 10942 |
| Class: | Input Validation Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Aug 14 2004 12:00AM |
| Updated: | Aug 14 2004 12:00AM |
| Credit: | Discovered by Matias Neiff <[email protected]>. |
| Vulnerable: |
PHPMyWebHosting PHPMyWebHosting 0.3.4 |
| Not Vulnerable: | |
Discussion
PHPMyWebHosting SQL Injection Vulnerability
It has been reported that PHPMyWebHosting is vulnerable to a SQL injection attack. The vulnerability is reportedly in the script "includes/functions/pmwh.php" and is the result of a SQL query constructed using inadequately sanitized HTML form variables. The most immediate concern is that this code appears to authenticate a remote client and does so in a way that may be trivially subverted with a vulnerability such as this one. Furthermore, as this is SQL injection, it may be possible for attackers to view or modify sensitive/confidential data in the database. It may also be possible for attackers to exploit the database server itself, potentially gaining access to the underlying host.
It has been reported that PHPMyWebHosting is vulnerable to a SQL injection attack. The vulnerability is reportedly in the script "includes/functions/pmwh.php" and is the result of a SQL query constructed using inadequately sanitized HTML form variables. The most immediate concern is that this code appears to authenticate a remote client and does so in a way that may be trivially subverted with a vulnerability such as this one. Furthermore, as this is SQL injection, it may be possible for attackers to view or modify sensitive/confidential data in the database. It may also be possible for attackers to exploit the database server itself, potentially gaining access to the underlying host.
Exploit / POC
PHPMyWebHosting SQL Injection Vulnerability
The following proof-of-concept (values for the HTML variables) was provided:
usr: admin"-(
pass: "asdfasdf
The following proof-of-concept (values for the HTML variables) was provided:
usr: admin"-(
pass: "asdfasdf
Solution / Fix
PHPMyWebHosting SQL Injection Vulnerability
Solution:
The vendor has released a patch to address this issue:
PHPMyWebHosting PHPMyWebHosting 0.3.4
Solution:
The vendor has released a patch to address this issue:
PHPMyWebHosting PHPMyWebHosting 0.3.4
-
phpMyWebhosting patch-0.3.4.tar.gz
http://prdownloads.sourceforge.net/phpmywebhosting/patch-0.3.4.tar.gz? download
References
PHPMyWebHosting SQL Injection Vulnerability
References:
References:
- Posible security bug in phpMyWebhosting (Matias Neiff
) - Re: Posible security bug in phpMyWebhosting (Udo "Müller"
) - Re: Posible security bug in phpMyWebhosting (Udo Mueller
)