Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos



Bugtraq: Posible security bug in phpMyWebhosting

Posible security bug in phpMyWebhosting

From: Matias Neiff <matias_at_neiff.com.ar>
Date: Sat, 14 Aug 2004 14:41:42 -0300

-----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-----
Received on Aug 14 2004

[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]