Lucene search
K

PHP Support Tickets 1.3 SQL Injection

🗓️ 30 Oct 2016 00:00:00Reported by N_AType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 31 Views

PHP Support Tickets v1.3 SQL Injection Vulnerability discovered by N_A[at]tutanota.com allows injection of unsanitized MySQL commands through index.php and config.php, posing a security risk

Code
`PHP_S_Tickets_v1.3 SQL Injection Vulnerabilty  
================================================  
  
  
Discovered by N_A, N_A[at]tutanota.com  
=======================================  
  
  
  
Description  
============  
  
PHP Support Tickets; will allow a webmaster the ability to offer its user base a means to contact its personnel through request vouchers.  
  
  
https://sourceforge.net/projects/php-sup-tickets  
  
  
  
  
Vulnerability  
==============  
  
An SQL Injection vulnerability exists that allows unsanitized commands to be passed into the MYSQL database.  
  
The vulnerability resides inside the index.php and the config.php file:  
  
  
  
index.php:  
===========  
  
############ AUTH SYSTEM ############  
A   
IF (isset($_POST['form']) && isset($_POST['username']) && isset($_POST['password']))  
A A A {  
A A A IF (AuthUser($_REQUEST['username'], $_REQUEST['password']))  
  
  
  
  
unsanitized requests are handled by the function AuthUser which is located inside config.php:  
  
  
config.php:  
===========  
  
Function AuthUser($user, $pass)  
A A A {  
A A A $query = "A A A SELECT tickets_users_password  
A A A A A A A A A FROM tickets_users  
A A A A A A A A A WHERE tickets_users_username = '$user'  
A A A A A A A A A AND tickets_users_status != '0'";  
A   
A A A $result = @mysql_query($query);  
  
  
  
The variable $user is passed to the MYSQL query completely unchecked and unsanitized and it is possible for command injection to take place here.  
  
  
  
  
  
Email  
======  
  
N_A[at]tutanota.com  
  
--  
Securely sent with Tutanota. Claim your encrypted mailbox today!  
https://tutanota.com  
`

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