phpIP 4.3.2 - Numerous SQL Injection Vulnerablities
- To: full-disclosure@xxxxxxxxxxxxxxxxx, bugtraq@xxxxxxxxxxxxxxxxx
- Subject: phpIP 4.3.2 - Numerous SQL Injection Vulnerablities
- From: "Charles Hooper" <hoop2w1@xxxxxxxxx>
- Date: Sat, 26 Jan 2008 20:08:48 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=qqf01jccECvO8QgjW9nEneplpCMcJ9Yu/h/vUB5Ae3k=; b=m+Hg1WSHk2A4fDHjE1vkTx/S15FetlLFxGIt/uBAh6oNFnNZMigc7XkgrPNj9GjZ1MtyfxzCqQzIV0qynKAFUGCUTKX4SBMDyKCBiHNchXYkGLjZ6Cm3HAcWPmrgvIepasALzpxBSyIQEMaAWiqGfp3y9PH0g5GQW4ZRBcIoL0Q=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Wj0rRIT2cTwYKpO7Wn2JIsZpeEfkQNSqqYERwqC6egaozNmqiyxAjKW2jVS2xXSv8itQ7e0pMsogt/f4AOy3FKiQW/JiKrst4FqgdvqBFr1ulhbx5KFSc4DVdmkEASG5kjXwQKBNfvWHdJosdmhYJ43twpxTKLraVUCt/6sSBQg=
- List-help: <mailto:bugtraq-help@securityfocus.com>
- List-id: <bugtraq.list-id.securityfocus.com>
- List-post: <mailto:bugtraq@securityfocus.com>
- List-subscribe: <mailto:bugtraq-subscribe@securityfocus.com>
- List-unsubscribe: <mailto:bugtraq-unsubscribe@securityfocus.com>
- Mailing-list: contact bugtraq-help@xxxxxxxxxxxxxxxxx; run by ezmlm
There exist numerous SQL injection vulnerabilities in phpIP 4.3.2, and
probably previous versions. Most of the data obtained from the request
variables ($_GET, $_POST, $_COOKIE, etc) is not sanitized before it is
passed to MySQL. This may result in un-authorized administrative
access to phpIp and read-access to the database, among other things.
One such vulnerability allows an attacker to gain administrative
access to the application, this does not require the attacker to
already have access to an existing user account.
Proof of concept:
Go to the phpIP login page and enter a valid username ('phpip'
typically works, if not try 'admin') with the following password:
a') UNION SELECT 1,1,'Administrator',1,1,1,1,1 #
At this point you will be logged in as an Administrator with the
supplied username.
There is also the risk of information disclosure through another SQL
injection vulnerability found in display.php. The following PoC
demonstrates a query that will echo a userid, username, MD5-hashed
password, and email address to the page. You must be logged in to take
advantage of this vulnerability (see above.)
Proof of concept:
http(s)://path/to/phpip/display.php?range=view&id=0%20UNION%20SELECT%20null,null,null,null,null,null,uid,username,password,email,null,null,null,null,null,null,null,null,null,null%20%20FROM%20users--&iprange=0&netid=0