id: CVE-2011-3171

info:
  name: Pure-FTPd ≤ 1.0.22 - Directory Traversal
  author: pussycat0x
  severity: low
  description: |
    Pure-FTPd versions ≤ 1.0.22 (and earlier) contain a directory traversal vulnerability when the "Netware OES remote server" feature is enabled. This allows local users to overwrite arbitrary files on the system, potentially leading to unauthorized file modification or system compromise.
  impact: |
    Local users can exploit directory traversal when Netware OES remote server feature is enabled to overwrite arbitrary files on the system, potentially leading to privilege escalation or system compromise.
  remediation: |
    Update Pure-FTPd to a version newer than 1.0.22 that properly validates paths when Netware OES remote server feature is enabled and prevents directory traversal attacks.
  reference:
    - http://lists.opensuse.org/opensuse-security-announce/2011-09/msg00015.html
    - http://lists.opensuse.org/opensuse-security-announce/2011-09/msg00016.html
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/69686
  classification:
    cvss-metrics: CVSS:2.0/AV:L/AC:L/Au:N/C:N/I:P/A:P
    cvss-score: 3.6
    cve-id: CVE-2011-3171
    cwe-id: CWE-22
    epss-score: 0.00011
    epss-percentile: 0.01555
    cpe: cpe:2.3:a:pureftpd:pure-ftpd:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: pureftpd
    product: pure-ftpd
    shodan-query:
      - product:"pure-ftpd" version:"1.0.14"
      - cpe:"cpe:2.3:a:pureftpd:pure-ftpd"
  tags: cve,cve2011,network,ftp,pure-ftpd,tcp,passive,lfi,vuln

tcp:
  - inputs:
      - data: 00000000
        type: hex

    host:
      - "{{Hostname}}"

    port: 21
    read-size: 1024

    matchers:
      - type: dsl
        dsl:
          - "contains(raw, 'Pure-FTPd')"
          - "compare_versions(version, '<= 1.0.22')"
        condition: and

    extractors:
      - type: regex
        group: 1
        name: version
        regex:
          - "Pure-FTPd ([0-9.]+)"
# digest: 4a0a0047304502202082c7a24c798ddcc8b533fbcb9b65d935bf99230c04b4f76568d180ec2deb1e022100c271132cc8500e2a090eb1447b75a4621136c620fc5b71f3697698fdb04091c9:922c64590222798bb761d5b6d8e72950