xdcms 后台绕过文件上传限制直接getshell(测试最新版)

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

### 简要描述: 后台绕过文件过滤限制可shell ### 详细说明: ``` system/libs/upload.class.php 上传的核心验证文件 public function upload_process(){ $num=count($_FILES[ $this->upload_form_field ]['name']); for($key=0;$key<$num;$key++){ $this->_clean_paths(); //创建存储路径 $save_path=$this->out_save_dir."uploadfile/".$this->upload_folder."/"; if (!file_exists($save_path)) { mkdir($save_path); } $ymd = date("Ymd"); $save_path .= $ymd; if (!file_exists($save_path)) { mkdir($save_path); } $this->out_file_dir = $save_path; //开始获取上传的文件 if ( ! function_exists( 'getimagesize' ) ){ $this->image_check = 0; } $FILE_NAME = isset($_FILES[ $this->upload_form_field ]['name'][$key]) ? $_FILES[ $this->upload_form_field ]['name'][$key] : ''; $FILE_SIZE = isset($_FILES[ $this->upload_form_field ]['size'][$key]) ? $_FILES[ $this->upload_form_field ]['size'][$key] : ''; $FILE_TYPE = isset($_FILES[ $this->upload_form_field ]['type'][$key]) ? $_FILES[ $this->upload_form_field ]['type'][$key] : ''; $FILE_TYPE = preg_replace( "/^(.+?);.*$/",...

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