tipask注入漏洞(条件限制)

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

### 简要描述: tipask注入漏洞 ### 详细说明: 漏洞细节: tipask url格式类似如此 index.php?classname/methodname 然后再初始化的index.php 会实例化名为classname 的类, run 后面的方法在method 名前面加上字符串on 这个是个$_FILES 注入吧。漏洞比较奇葩。 tipask 有全局的过率机制,虽然过率了post get 等数据可是忽略了$_FIELS ,但是这个地方 ``` function onuploadimage() { //上传配置 $config = array( "uploadPath" => "data/attach/", //保存路径 "fileType" => array(".gif", ".png", ".jpg", ".jpeg", ".bmp"), "fileSize" => 2048 ); //原始文件名,表单名固定,不可配置 $oriName = htmlspecialchars($this->post['fileName'], ENT_QUOTES); //上传图片框中的描述表单名称, $title = htmlspecialchars($this->post['pictitle'], ENT_QUOTES); //文件句柄 $file = $_FILES["upfile"];//全局绕过 //文件上传状态,当成功时返回SUCCESS,其余值将直接返回对应字符窜并显示在图片预览框,同时可以在前端页面通过回调函数获取对应字符窜 $state = "SUCCESS"; //格式验证 $current_type = strtolower(strrchr($file["name"], '.')); if (!in_array($current_type, $config['fileType'])) {//白名单限制 $state = $current_type; } //大小验证 $file_size = 1024 * $config['fileSize']; if ($file["size"] > $file_size) { $state = "b"; } //保存图片 if ($state == "SUCCESS") { $targetfile =...

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