HexBrain

Browse / CVEs / CVE-2021-42627

CVE-2021-42627· dlink / dir-615

D-Link DIR-615 - Unauthorized Access

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

D-Link DIR-615 devices with firmware 20.06 are susceptible to unauthorized access. An attacker can access the WAN configuration page wan.htm without authentication, which can lead to disclosure of WAN settings, data modification, and/or other unauthorized operations.

Impact

Successful exploitation of this vulnerability can lead to unauthorized access to the router, potentially compromising the network and exposing sensitive information.

Fix

Apply the latest firmware update provided by D-Link to fix the vulnerability and ensure strong and unique passwords are set for router administration.

How to confirm it

Send: GET {{BaseURL}}/wan.htm
Positive when: contains "src='menu.js?v=\"+Math.random()+\"'></scr\"+\"ipt>\");" and "var ipv6conntype" AND contains in header "Virtual Web" AND status 200

Run it with nuclei: nuclei -id CVE-2021-42627 -u <target>

The full check
id: CVE-2021-42627

info:
  name: D-Link DIR-615 - Unauthorized Access
  author: For3stCo1d
  severity: critical
  description: |
    D-Link DIR-615 devices with firmware 20.06 are susceptible to unauthorized access. An attacker can access the WAN configuration page wan.htm without authentication, which can lead to disclosure of WAN settings, data modification, and/or other unauthorized operations.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to the router, potentially compromising the network and exposing sensitive information.
  remediation: |
    Apply the latest firmware update provided by D-Link to fix the vulnerability and ensure strong and unique passwords are set for router administration.
  reference:
    - https://github.com/sanjokkarki/D-Link-DIR-615/blob/main/CVE-2021-42627
    - https://www.dlink.com/en/security-bulletin/
    - https://nvd.nist.gov/vuln/detail/CVE-2021-42627
    - http://d-link.com
    - http://dlink.com
  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-2021-42627
    epss-score: 0.63528
    epss-percentile: 0.99217
    cpe: cpe:2.3:h:dlink:dir-615:-:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: dlink
    product: dir-615
    shodan-query:
      - http.title:"Roteador Wireless"
      - cpe:"cpe:2.3:h:dlink:dir-615"
  tags: cve2021,cve,d-link,router,unauth,dir-615,roteador,dlink,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wan.htm"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "src='menu.js?v=\"+Math.random()+\"'></scr\"+\"ipt>\");"
          - "var ipv6conntype"
        condition: and

      - type: word
        part: header
        words:
          - Virtual Web

      - type: status
        status:
          - 200

References

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