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.96435
    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: 490a004630440220441a02ce13e10b66c78d35debfe7a536ff68a751505e6682d61af274799fd78f02204d5d644c2e0aee1fb7892ce73b85ee462388cc62c81204d45e6f73cfbe961c6d:922c64590222798bb761d5b6d8e72950