id: CVE-2021-46379

info:
  name: D-Link DIR850 ET850-1.08TRb03 - Open Redirect
  author: 0x_Akoko
  severity: medium
  description: DLink DIR850 ET850-1.08TRb03 contains incorrect access control vulnerability in URL redirection, which can be used to mislead users to go to untrusted sites.
  impact: |
    An attacker can exploit this vulnerability to redirect users to malicious websites, leading to phishing attacks or the download of malware.
  remediation: |
    Apply the latest firmware update provided by D-Link to fix the open redirect vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2021-46379
    - https://drive.google.com/file/d/1rrlwnIxSHEoO4SMAHRPKZSRzK5MwZQRf/view
    - https://www.dlink.com/en/security-bulletin
    - https://www.dlink.com/en/security-bulletin/
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2021-46379
    cwe-id: CWE-601
    epss-score: 0.15701
    epss-percentile: 0.96524
    cpe: cpe:2.3:o:dlink:dir-850l_firmware:1.08trb03:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: dlink
    product: dir-850l_firmware
  tags: cve,cve2021,redirect,dlink,router,vkev,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/boafrm/formWlanRedirect?redirect-url=http://interact.sh&wlan_id=1'

    matchers:
      - type: regex
        part: header
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)(?:[a-zA-Z0-9\-_\.@]*)interact\.sh\/?(\/|[^.].*)?$' # https://regex101.com/r/L403F0/1
# digest: 490a0046304402205d532c3846a0ca527d7638ea97a75434c22b4737c316616ce34a6013e6b07168022075f9ab71848a8a1f424060a4daf0561c7f437c83d5ce50218856f0a87fe29ce7:922c64590222798bb761d5b6d8e72950