Lucene search
+L

Open Audit SQL Injection Vulnerability

🗓️ 13 Dec 2015 00:00:00Reported by WICSType 
zdt
 zdt
🔗 0day.today👁 16 Views

Open Audit SQL Injection Vulnerability, unauthenticated access to delete_missed_audit.ph

Code
Exploit Title : Open Audit(GPL version) SQL injection vulnerability
Author         : WICS
Date             : 9/12/2015
Software Link  : https://github.com/jonabbey/open-audit
 
Overview:
 
 
delete_missed_audit.php is accessible without authentication and GET Method parameter pc is not getting filter before passing to SQL query.
Vulnerable code 
 
if (isset($_GET['pc'])) {
    $link = mysql_connect($mysql_server, $mysql_user, $mysql_password) or die("Could not connect");
    mysql_select_db("$mysql_database") or die("Could not select database");
    $query = "select system_name from system where system_uuid='" . $_GET['pc'] . "'";
    $result = mysql_query($query)  or die("Query failed at retrieve system name stage.");
    $myrow = mysql_fetch_array($result);
    $name = $myrow['system_name'];
  

 
 
POC
Vulnerable URL 
https://github.com/jonabbey/open-audit/blob/master/delete_missed_audit.php?pc=SQL_Injection

#  0day.today [2018-01-10]  #

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

13 Dec 2015 00:00Current
8.1High risk
Vulners AI Score8.1
16