id: CVE-2014-1841

info:
  name: Titan FTP Server < 10.40 Move Function - Directory Traversal
  author: pussycat0x
  severity: medium
  description: |
    Titan FTP Server versions prior to 10.40 build 1829 contain a directory traversal vulnerability in the Move function. Remote attackers can copy the complete home folder of another user by exploiting the ../ path traversal in the search-bar value, allowing unauthorized access to sensitive user data.
  impact: |
    Unauthenticated attackers can exploit directory traversal in the Move function to copy complete home folders of other users, allowing unauthorized access to sensitive user data stored on the FTP server.
  remediation: |
    Update Titan FTP Server to version 10.40 build 1829 or later that properly validates path parameters in the Move function to prevent directory traversal.
  reference:
    - http://www.exploit-db.com/exploits/31579
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:N/A:N
    cvss-score: 5
    cve-id: CVE-2014-1841
    cwe-id: CWE-22
    epss-score: 0.0379
    epss-percentile: 0.88233
    cpe: cpe:2.3:a:southrivertech:titan_ftp_server:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: southrivertech
    product: titan_ftp_server
    shodan-query: product:"Titan ftpd"
  tags: cve,cve2014,network,ftp,titan-ftp,tcp,passive,lfi,vuln

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

    host:
      - "{{Hostname}}"

    port: 21
    read-size: 1024

    matchers:
      - type: dsl
        dsl:
          - "contains(raw, 'Titan')"
          - "compare_versions(version, '< 10.40')"
        condition: and

    extractors:
      - type: regex
        group: 1
        name: version
        regex:
          - "Titan FTP Server ([0-9.]+)"
# digest: 490a0046304402205342daf4023c052b820b399f4c7365e38b35806e75d20c7cee45ea751894dd9b02200273905b1c96d386c0c199c90852c27e0594d0a572cde92f5a1738ae9d767494:922c64590222798bb761d5b6d8e72950