EasyTalk任意文件删除漏洞(可后台getshell)

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

### 简要描述: [Code Audit]EasyTalk任意文件删除漏洞【可重装,并可后台getshell】 ### 详细说明: 漏洞代码文件:/easytalk/Home/Lib/Action/settingAction.class.php文件 代码: ``` //保存头像 public function doface() { $ysw=$_POST['ysw']; if ($ysw>660) { $zoom=intval($ysw)/660; } else { $zoom=1; } $x=$_POST['x']*$zoom; $y=$_POST['y']*$zoom; $w=$_POST['w']*$zoom; $h=$_POST['h']*$zoom; $imgpath=ET_ROOT.$_POST['imgpath']; //imgpath过滤了一些参数,但../等未过滤,致使任意文件删除 $ext=strtolower(getExtensionName($imgpath)); // var_dump($imgpath);die; import("@.ORG.IoHandler"); $IoHandler = new IoHandler(); if(!isImage($imgpath)) { // var_dump($imgpath);die; $IoHandler->DeleteFile($imgpath); //ok了,任意文件删除 setcookie('setok', json_encode(array('lang'=>L('face2'),'ico'=>2)),0,'/'); header('location:'.SITE_URL.'/?m=setting&a=face'); exit; } $image_path = ET_ROOT.'/Public/attachments/head/'.date('Ymd').'/'; if(!is_dir($image_path)) { mkdir($image_path); } $f=date('His'); //大图片 import("@.ORG.makethumb"); $makethumb=new makethumb(); $filename=$f.'_big.'.$ext;...

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