Current position: Home > Office > > Article

阿里云提示织梦DedeCMS v5.7 注册用户任意文件删除漏洞

software union 2019-07-25 2 reviews

织梦模板秀站淘宝店开业,好礼送不停

 

阿里云服务器提示织梦DedeCMS v5.7 注册用户任意文件删除漏洞,今天秀站网技术讲解下解决办法。

漏洞简介:dedecms前台任意文件删除(需要会员中心),发表文章处,对于编辑文章的时候图片参数处理不当,导致了任意文件删除。

漏洞文件:/member/inc/archives_check_edit.php

漏洞描述:注册会员用户可利用此漏洞任意删除网站文件。
 

修复方法:

 

打开/member/inc/archives_check_edit.php

 

找到大概第92行的代码:

 

$litpic =$oldlitpic;

 

修改为:

 

$litpic =$oldlitpic; if (strpos( $litpic, '..') !== false || strpos( $litpic, $cfg_user_dir."/{$userid}/" ) === false) exit('not allowed path!');

切记,请大家修改之前,做好备份工作。

 

本文地址:https://www.xiuzhanwang.com/dedecms_aq/1048.html

    Reprint please indicate from software union,This article title:阿里云提示织梦DedeCMS v5.7 注册用户任意文件删除漏洞
    Current address:http://softsunion.com/office/60.html

    Tag:

    Support Us

    Welcome to support us! You are appreciated.

    Search
    Ad
    Recommend Articles
    Random tag
    OfficePDFseo运营seo概念seo技术排名优化网站快排优化软件排名软件闪电排名新站排名seo教程SEO培训SEO课程
    Latest reviews
    Friendly link