HexBrain

Browse / CVEs / CVE-2023-22629

CVE-2023-22629· southrivertech / titan ftp server· CWE-22

TitanFTP move-file Function ≤ 1.94.1205 - Path Traversal

highseverity
8.8CVSS score
12.3%likelihood of exploitation, next 30 days
96%of all CVEs are less likely
Readycheck to confirm it

TitanFTP versions up to 1.94.1205 contain a path traversal vulnerability in the move-file function where the newPath parameter is improperly validated. An authenticated user can upload a file and then move it to any location on the server filesystem, potentially allowing arbitrary file placement and system compromise.

Impact

Authenticated attackers can exploit the move-file function to place files anywhere on the server filesystem using path traversal techniques, potentially overwriting system files, planting malicious executables, or compromising server integrity.

Fix

Upgrade to TitanFTP version newer than 1.94.1205 that properly validates the newPath parameter in the move-file function.

How to confirm it

Send: tcp probe to {{Hostname}}
Positive when: contains(raw, 'TitanFTP') and compare_versions(version, '<= 1.94.1205')

Run it with nuclei: nuclei -id CVE-2023-22629 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2023-22629

info:
  name: TitanFTP move-file Function ≤ 1.94.1205 - Path Traversal
  author: pussycat0x
  severity: high
  description: |
    TitanFTP versions up to 1.94.1205 contain a path traversal vulnerability in the move-file function where the newPath parameter is improperly validated. An authenticated user can upload a file and then move it to any location on the server filesystem, potentially allowing arbitrary file placement and system compromise.
  impact: |
    Authenticated attackers can exploit the move-file function to place files anywhere on the server filesystem using path traversal techniques, potentially overwriting system files, planting malicious executables, or compromising server integrity.
  remediation: |
    Upgrade to TitanFTP version newer than 1.94.1205 that properly validates the newPath parameter in the move-file function.
  reference:
    - http://packetstormsecurity.com/files/171737/Titan-FTP-Path-Traversal.html
    - https://titanftp.com
    - https://www.southrivertech.com/software/nextgen/titanftp/en/relnotes.pdf
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 8.8
    cve-id: CVE-2023-22629
    cwe-id: CWE-22
    epss-score: 0.12322
    epss-percentile: 0.96227
    cpe: cpe:2.3:a:southrivertech:titan_ftp_server:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: southrivertech
    product: titan_ftp_server
    shodan-query: product:"Titan ftpd"
  tags: cve,cve2023,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, 'TitanFTP')"
          - "compare_versions(version, '<= 1.94.1205')"
        condition: and

    extractors:
      - type: regex
        group: 1
        name: version
        regex:
          - "TitanFTP ([0-9.]+)"

References

Use this check only on systems you are authorised to test. Where the data comes from