id: CVE-2008-5281

info:
  name: Titan FTP Server 6.05 DELE Command - Heap Overflow
  author: pussycat0x
  severity: critical
  description: |
    Titan FTP Server version 6.05 build 550 contains a heap overflow vulnerability when processing long DELE commands. Remote attackers can cause denial of service (daemon crash) or potentially execute arbitrary code by sending excessively long arguments to the DELE command.
  impact: |
    Unauthenticated attackers can send long DELE commands to trigger heap overflow, causing denial of service by crashing the FTP daemon or potentially executing arbitrary code on the server.
  remediation: |
    Update Titan FTP Server to a version newer than 6.05 build 550 that properly validates command length and prevents heap overflow vulnerabilities in the DELE command handler.
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:C/I:C/A:C
    cvss-score: 10
    cve-id: CVE-2008-5281
    cwe-id: CWE-119
    epss-score: 0.01419
    epss-percentile: 0.80841
    cpe: cpe:2.3:a:south_river_technologies:titan_ftp_server:6.05:build_550:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: south_river_technologies
    product: titan_ftp_server
    shodan-query: product:"Titan FTP"
  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.05')"
        condition: and

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