SQL Injection in DynPG

2010-12-01T00:00:00
ID SECURITYVULNS:DOC:25222
Type securityvulns
Reporter Securityvulns
Modified 2010-12-01T00:00:00

Description

Vulnerability ID: HTB22701 Reference: http://www.htbridge.ch/advisory/sql_injection_in_dynpg.html Product: DynPG Vendor: dynpg.org ( http://www.dynpg.org/ ) Vulnerable Version: 4.2.0 Vendor Notification: 16 November 2010 Vulnerability Type: SQL Injection Status: Fixed by Vendor 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 "_rights.php" script to properly sanitize user-supplied input in "giveRights_UserId" 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.

Attacker can use browser to exploit this vulnerability. The following PoC is available:

<form action="http://[host]/_rights.php" method="post" name="main" > <input type="hidden" name="saveRights" value="1" /> <input type="hidden" name="giveRights_giveright" value="1" /> <input type="hidden" name="giveRights_UserId" value="123'SQL_CODE_HERE" /> <input type="submit" value="submit" name="submit" /> </form>

Solution: Upgrade to the most recent version