phpdisk Z-core网赚版子程序过滤不严,导致可删除文件.

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

### 简要描述: phpdisk Z-core网赚版下载子程序(sub)过滤不严,导致可删除任意文件. ### 详细说明: 我们先来看子程序中phpdisk_del_process.php这个文件相关代码。 [<img src="https://images.seebug.org/upload/201501/18095728bb5c42d9092bb70485406df787b69059.jpg" alt="1.JPG" width="600" onerror="javascript:errimg(this);">](https://images.seebug.org/upload/201501/18095728bb5c42d9092bb70485406df787b69059.jpg) parse_str(pd_encode($str,'DECODE')); 这里直接把传进来的值,解析到变量中了。但是被加密了,看似不可利用,其实不然。我们再来看dl.php。这个是最后下载页。 [<img src="https://images.seebug.org/upload/201501/1809591488afe9afd38de49a41de685fcbcccd0d.jpg" alt="2.JPG" width="600" onerror="javascript:errimg(this);">](https://images.seebug.org/upload/201501/1809591488afe9afd38de49a41de685fcbcccd0d.jpg) parse_str(pd_encode(base64_decode(rawurldecode($str)),'DECODE')); 这里同样是直接把传进来的值,解析到变量中。解析后有一个变量$file_id,而上面phpdisk_del_process.php这文件只需要一个$file_id就可以执行删除操作。 phpdisk_del_process.php ``` <?php /** #Project: PHPDISK File Storage Solution #This is NOT a freeware, use is subject to license terms. # #Site:...

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