TinyRise最新版前台任意文件包含漏洞

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

### 简要描述: TinyRise最新版(20140926)任意文件包含漏洞,一定条件下,可getshell ### 详细说明: 漏洞发生在framework/web/controller/Controller_class.php文件的renderExecute函数: renderExecute函数存在extract变量覆盖,关键代码如下: ``` public function renderExecute($__runfile0123456789,$__data0123456789) { ...//省略无关代码 if($__datas0123456789!==null) { extract($__datas0123456789); unset($__datas0123456789,$__data0123456789);//防止干扰视图里的变量内容,同时防止无端过滤掉用户定义的变量(除非用户定义__data0123456789的变量) } header("Content-type: text/html; charset=".$this->encoding); ob_start(); include ($__runfile0123456789); ``` 执行extract($__datas0123456789);后再执行include ($__runfile0123456789);因此可覆盖$__runfile0123456789参数,导致前台任意文件包含;同时可在后台上传包含php代码的图片,实现getshell ### 漏洞证明: 下载最新版:http://www.tinyrise.com/downloads/tinyshopv1.1_data.zip 本地测试: [前台文件包含] http://127.0.0.1/tinyshop/index.php?__runfile0123456789=install\data\install.sql [<img src="https://images.seebug.org/upload/201410/24125004f4e2114e32f78aca5a53d211d839503b.png" alt="捕获.PNG" width="600"...

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