ueditor解决commons-fileupload出现xss安全漏洞及二次开发注意事项

编程 · 2024-07-26 · 1479 人浏览

开源地址:https://github.com/fex-team/ueditor

1、ueditor现在已经停止维护了,二次开发自定义插件注意事项:
(1)克隆项目:

git clone https://github.com/fex-team/ueditor.git

(2)全局安装 grunt
文档:https://www.gruntjs.net/getting-started

npm install -g grunt-cli

(3)安装依赖

npm install

(4)在终端执行:

grunt default

默认打包的是php插件,另外还可以传入参数:

grunt default --server=jsp



2、解决 commons-fileupload 安全漏洞
如官方github所说,commons-fileupload-1.3.1.jar 存在漏洞可能会导致 ddos,源代码中已经修改,使用老版本的用户,强烈推荐升级 commons-fileupload.jar 至最新版本。(2018-04-09)

由于本人不会java,线上使用的是tomcat-7.0.63,担心老项目升级得太激进,在网上很久才找到commons-fileupload-1.5.jar,去把线上的jar包替换掉就可以。

ver-2.0.0:commons-fileupload2-2.0.0-M2-bin.zip
ver-1.5.0:commons-fileupload-1.5-bin.zip
Apache Commons FileUpload官方下载:https://commons.apache.org/proper/commons-fileupload/download_fileupload.cgi

ueditor grunt xss ddos
Theme Jasmine by Kent Liao
本站已运行:9年18天17小时48分,总访问量 17881 次