id: CVE-2008-0702

info:
  name: Titan FTP Server 6.03 and 6.0.5.549 - Heap Overflow via Long Commands
  author: pussycat0x
  severity: critical
  description: |
    Titan FTP Server versions 6.03 and 6.05 (builds) contain multiple heap-based buffer overflow vulnerabilities. Remote attackers can cause denial of service (daemon crash) or potentially execute arbitrary code by sending excessively long USER, PASS, or other FTP commands that trigger heap overflows.
  impact: |
    Unauthenticated attackers can send excessively long USER, PASS, or other FTP commands to trigger heap overflows, causing denial of service by crashing the daemon or potentially executing arbitrary code on the server.
  remediation: |
    Update Titan FTP Server to a version newer than 6.05 build 549 that properly validates command length and prevents heap overflow vulnerabilities in FTP command handlers.
  reference:
    - http://securityreason.com/securityalert/3639
    - http://www.vupen.com/english/advisories/2008/0393
    - https://www.exploit-db.com/exploits/5036
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:N/C:C/I:C/A:C
    cvss-score: 9.3
    cve-id: CVE-2008-0702
    cwe-id: CWE-119
    epss-score: 0.07707
    epss-percentile: 0.94004
    cpe: cpe:2.3:a:south_river_technologies:titan_ftp_server:6.0.5.549:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: south_river_technologies
    product: titan_ftp_server
    shodan-query: product:"Titan ftpd" version:"16.00.2672"
  tags: cve,cve2008,network,ftp,titan-ftp,tcp,passive,vuln

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

    host:
      - "{{Hostname}}"

    port: 21
    read-size: 1024

    matchers:
      - type: dsl
        dsl:
          - "contains(raw, 'Titan')"
          - "contains(version, '6.03') || contains(version, '6.0.5.549')"
        condition: and

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