Lucene search
K

Advanced Upload (PHP) Script 1.0.2 SQL Injection

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

PHP upload script 1.0.2 SQL Injection vulnerabilit

Code
`Advanced Upload (PHP) Script Version 1.0.2 MySQL Injection Vulnerabilities  
============================================================================  
  
  
  
  
Discovered by N_A, N_A[at]tutanota.com  
=======================================  
  
  
  
  
  
  
  
Description  
============  
  
An advanced php uploading script with MANY advanced features. including: registration, upload, manage uploads with folder  
and upload management, ...and MUCH MUCH more!!!  
  
  
https://sourceforge.net/projects/adv-uploads  
  
  
  
  
  
Vulnerabilities  
================  
  
Several SQL Injection vulnerabilites exist that allow direct injection into the MySQL database.  
  
  
Files Effected  
===============  
  
login.php:  
  
  
if($_GET['action'] == 'check')  
{  
//find the user  
$result = mysql_query("SELECT * FROM loginphp WHERE Uname='{$_POST['Uname']}'")$  
$row = mysql_fetch_array( $result ); //set $row to result  
  
  
  
  
As we can see the vulnerable variable is 'Uname' which is passed to the database via the POST method completely unchecked.  
  
  
  
  
  
forgotpass.php:  
  
  
if($_GET['action'] == 'email')  
{  
$_Email = $_POST['Email'];  
$result = mysql_query("SELECT * FROM loginphp  
WHERE Email='" . $_Email . "'") or die(mysql_error());   
$row = mysql_fetch_array( $result );  
  
  
  
As we can see here the 'Email' variable is passed to the database completely unchecked via the POST method.  
  
  
  
  
  
  
  
Email  
======  
  
Discovered by N_A  
N_A[at]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

16 Oct 2016 00:00Current
0.6Low risk
Vulners AI Score0.6
31