doramart / DoraCMS

DoraCMS是基于Nodejs+eggjs+mongodb编写的一套内容管理系统,结构简单,较目前一些开源的cms,doracms易于拓展,特别适合前端开发工程师做二次开发。
https://www.html-js.cn
MIT License
3.45k stars 1.02k forks source link

There is a stored xss vulnerability exists in DoraCMS #255

Open afeng2016-s opened 2 years ago

afeng2016-s commented 2 years ago

[Suggested description] There is a storage XSS vulnerability in the background / admin / contenttemp module of doracms system. The user can access index HTML and 404 HTML page number will trigger JS pop-up.

[Vulnerability Type] Storage XSS vulnerability

[Vendor of Product] https://github.com/doramart/DoraCMS

[Affected Product Code Base] DoraCMS v2.1.8

[Attack Type] Remote

[Impact Code execution] true

[Vulnerability proof] Step 1: log in to doracms and visit the admin / contenttemp page at URL: http://127.0.0.1:8080/admin/contentTemp。As can be seen from the figure below, the template is a page frequently visited by users, such as 404 html、index. html。 image

Step 2: enter the JS code < script > alert (1) < / script > in the template, as shown in the following figure. image

image

Step 3: after saving the changes, visit 404 HTML and index HTML, trigger JS code execution pop-up window. image image