Cpanel PHP Restriction Bypass Vulnerability 0day

简介: ''' __ __ ____ _ _ ____ | // |/ __ / // | | | | _ / | / / |...
''' __ __ ____ _ _ ____ | // |/ __ / // | | | | _ / | / / | | | | / / | | | | |_) | | |//| | | | |/ // /| | | | _ < Day 1 (0day) | | | | |__| / ____ / |__| | |_) | |_| |_|/____/_/ /_/____/|____/ ''' abysssec Inc Public Advisory 1) Advisory information Title : Cpanel PHP Restriction Bypass Vulnerability Version : <= 11.25 Discovery : http://www.abysssec.com Vendor : http://www.cpanel.net Impact : Ciritical Contact : shahin [at] abysssec.com , info [at] abysssec.com Twitter : @abysssec 2) Vulnerability Information Class 1- Restriction Bypass Vulnerability Impact Attackers can use this issue to gain access to restricted files, potentially obtaining sensitive information that may aid in further attacks.It can help attacker to bypass restriction such as mod_security , Safemod and disable functions. Remotely Exploitable No Locally Exploitable Yes 3) Vulnerability details 1- Restriction Bypass Vulnerabilities: Load All file with this structures : [Domain | Filename ] from : /home/[user directory name/.fantasticodata/[Script name folder] and include all file. Example [folder] : /home/test/.fantasticodata/Joomla_1.5/ then include this file : test.com|file1 After you created your malicious file in that style you can browse this page: http://test.com:2082/frontend/x3/fantastico/autoinstallhome.php?app=Joomla_1.5 Now your PHP code will execute without /safe_mode/Disable_function/ Mod_security due to cpanel php.ini must be run with execute permission. Vulnerable code located in in /usr/local/cpanel/3rdparty/fantastico/autoinstallhome.php : Line 529 : function Show_Notice ( $Script , $Version_Numbers ) { $Home_Directory = $GLOBALS['enc_cpanel_homedir'] ; if ( substr ( $Home_Directory , -1 ) != '/' ) { $Home_Directory = $Home_Directory . '/' ; } $Files = Array ( ) ; [This Place] ---> $Directory = $Home_Directory . '.fantasticodata/' . $Script . '/' ; $Files = Get_Files ( $Directory ) ; if ( !empty ( $Files ) AND is_array ( $Files ) ) { $Temporary = natcasesort ( $Files ) ; } foreach ( $Files As $File ) { $Name = '' ; $Path = '' ; if ( strstr ( $File , "|" ) ) { $Name = explode ( "|" , $File ) ; $Name = $Name[1] ; } else { $Name = $File ; } /* Debugging */ // echo $Directory . $File . '
' ; if ( is_file ( $Directory . $File ) ) { include $Directory . $File ; if ( !empty ( $thisscriptpath ) ) { $Path = $thisscriptpath ; } else { $Path = $Home_Directory . 'public_html/' . $Name . '/' ; } if ( substr ( $Path , -1 ) != '/' ) { $Path = $Path . '/' ; } /* Debugging */ // echo $Path . 'fantversion.php

' ; if ( is_file ( $Path . 'fantversion.php' ) ) { include $Path . 'fantversion.php' ; if ( !empty ( $version ) ) { if ( in_array ( $version , $Version_Numbers ) ) { return 'Yes' ; } } } } } return 'No' ; }
目录
相关文章
|
1月前
|
应用服务中间件 Shell PHP
pbootcms模板报错提示PHP Warning: Unknown: open_basedir restriction
pbootcms模板报错提示PHP Warning: Unknown: open_basedir restriction
|
PHP
PHP Execute Command Bypass Disable_functions
http://zone.wooyun.org/content/16631 http://www.
672 0
|
PHP
PHP 'header()' HTTP Header Injection Vulnerability
An attacker can exploit this issue by enticing an unsuspecting user to follow a malicious URI.
752 0
|
SQL
Symantec Web Gateway 'deptUploads_data.php' SQL Injection Vulnerability
http://www.securityfocus.com/bid/54721/exploit
540 0
|
PHP Java Shell
PHP 5.2.12/5.3.1 session.save_path safe_mode and open_basedir bypass
[ PHP 5.2.12/5.3.1 session.save_path safe_mode and open_basedir bypass ]Credit: Grzegorz StachowiakProvided by: SecurityReason.
988 0
|
PHP
PHP 5.2.6 (error_log) safe_mode Bypass Vulnerability
 [ SecurityReason.com PHP 5.2.6 (error_log) safe_mode bypass ]Author: Maksymilian Arciemowicz (cXIb8O3)securityreason.
1200 0
|
安全 PHP
PHP cURL 'safe mode' Security Bypass Vulnerability
The following proof-of-concept PHP code is available:var_dump(curl_exec(curl_init("file://safe_mode_bypass/x00&amp;quot;.
823 0
|
PHP Unix
PHP5 Globals Vulnerability
http://securityvulns.com/Ldocument219.html  PHP5 Globals Vulnerability: with ?GLOBALS[foobar] yo...
1519 0
|
2月前
|
安全 关系型数据库 MySQL
PHP与MySQL交互:从入门到实践
【9月更文挑战第20天】在数字时代的浪潮中,掌握PHP与MySQL的互动成为了开发动态网站和应用程序的关键。本文将通过简明的语言和实例,引导你理解PHP如何与MySQL数据库进行对话,开启你的编程之旅。我们将从连接数据库开始,逐步深入到执行查询、处理结果,以及应对常见的挑战。无论你是初学者还是希望提升技能的开发者,这篇文章都将为你提供实用的知识和技巧。让我们一起探索PHP与MySQL交互的世界,解锁数据的力量!