Lucene search
K

PHP Support Tickets 1.3 SQL Injection Vulnerability

🗓️ 31 Oct 2016 00:00:00Reported by N_AType 
zdt
 zdt
🔗 0day.today👁 16 Views

PHP Support Tickets 1.3 SQL Injection Vulnerability in AUTH Syste

Code
PHP_S_Tickets_v1.3 SQL Injection Vulnerabilty


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.

#  0day.today [2018-03-19]  #

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

31 Oct 2016 00:00Current
7.1High risk
Vulners AI Score7.1
16