totaljs / cms

Node.js Content Management System
http://www.totaljs.com/cms/
MIT License
223 stars 92 forks source link

[Security] Stored XSS #39

Closed edoardottt closed 1 year ago

edoardottt commented 2 years ago

Tested version: 8c2c8909 (latest)

Steps to reproduce the vulnerability:

Each time a target will visit the dashboard the payload will fire, even if the target is not logged in! Since the wesbite redirects to /admin/ presenting the login form, but the payload is reflected also there.

In order to test this, just click logout and reload the page.

Screenshot from 2022-09-19 19-30-33

Screenshot from 2022-09-19 17-48-46

petersirka commented 1 year ago

Hi @edoardottt, This is not a security issue. It's an administration area, and you must have enabled sa privileges for editing those settings. If you look into the widgets/pages/layouts you can easily inject scripts (and not only for client-side...).