博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Cpanel PHP Restriction Bypass Vulnerability 0day
阅读量:2437 次
发布时间:2019-05-10

本文共 2730 字,大约阅读时间需要 9 分钟。

''' __ __ ____ _ _ ____ | // |/ __ / // | | | | _ / | / / | | | | / / | | | | |_) | | |//| | | | |/ // /| | | | _ < 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' ; }

转载地址:http://aqqmb.baihongyu.com/

你可能感兴趣的文章
Linux操作系统下媒体播放器的初步探讨(转)
查看>>
网站内页权重如何提高-SEO优化技术群课堂笔记(转)
查看>>
用MSDOS.SYS同装两个WIN98(转)
查看>>
用DHTML来模拟实现下拉菜单(转)
查看>>
oracle数据库应用中实现汉字“同音”查询(转)
查看>>
关于无盘网络正确网络配置建议,减少卡机蓝屏关键(转)
查看>>
交换机及路由器如何才能更加安全?(转)
查看>>
chinaunix
查看>>
bxp读写分离怎么设置(转)
查看>>
复制表结构的通用存储过程(转)
查看>>
Symbian OS SDKs简介(转)
查看>>
[组图]基于Nokia S60的游戏开发之四(转)
查看>>
屡次选错终致项目暴毙(转)
查看>>
WinXP优化 全面消除操作系统的复制乱码(转)
查看>>
symbian 60 开发的一个问题-让左右键都能弹出菜单(转)
查看>>
SQL Server静态页面导出技术(转)
查看>>
黑客软件最常用的连接端口一览(转)
查看>>
解决无盘多机启动慢的方法(转)
查看>>
检查字符串strSource是否为big或big5码(转)
查看>>
EXCEL读取与写入数据的最佳方案(转)
查看>>