Authentication Bypass in phpstatus
Summary
- Vulnerability
- Authentication Bypass in phpstatus
- Discovered
- 2006.02.04
- Last Update
- 2006.03.18 Solution added
- ID
- EV0061
- CVE
- CVE-2006-0570 CVE-2006-0571 CVE-2006-0572
- Risk Level
- medium
- Type
- SQL Injection
- Status
- Patched
- Vendor
- Hinton Design (http://www.hintondesign.org)
- Vulnerable Software
- phpstatus (http://www.hintondesign.org/downloads/view_cat.php?cat_id=92)
- Version
- 1.0
- PoC/Exploit
- Available
- Solution
- Available
- Discovered by
- Aliaksandr Hartsuyeu (eVuln.com)
Description
SQL Injection found in phpstatus (http://www.hintondesign.org/downloads/view_cat.php?cat_id=92) script.
Vulnerable script: check.php
There are two ways to bypass authentication:
a) SQL Injection
Variable $HTTP_POST_VARS[username] isn't properly sanitized before being used in a SQL query. This can be used to make any SQL query by injecting arbitrary SQL code.
Condition: magic_quotes_gpc - off
b) Cookie based authentication
check.php script dont make password comparisson when identifying user by cookies
Multiple Cross-Site Scripting & Multiple SQL Injections vulnerabilities are present in administrator's control panel.
PoC/Exploit
1. Authentication Bypass Examples
a) SQL Injection
url: http://host/ht/login.php
Username: ' or 1/*
Password: any
b) Cookie based authentication
Cookie: loged=yes
Cookie: username=admin
Cookie: user_level=1
Solution.
To fix this problem install or upgrade to latest version provided by vendor.