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.00306
    epss-percentile: 0.69219
    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

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: 490a004630440220662eb1b263a0b01f1071874369fa7a86839894d4400dc0d506682d35de9460eb0220352e5f7da169eb259ddd7b946ccd72587de74cdb8f0bc967dd7daabe77147c3f:922c64590222798bb761d5b6d8e72950