Cross-Site Request Forgery (CSRF) in namelessmc/nameless
Reported on
Oct 10th 2021
Description
Several endpoints are vulnerable to CSRF
1: module install /index.php?route=/panel/core/modules/&action=install
2: clear template cache /index.php?route=/panel/core/panel_templates/&action=clear_cache
3: install templates, activate template, deactivate template, delete template, make_default... /index.php?route=/panel/core/panel_templates/&action=install
4: purge alerts /index.php?route=/user/alerts/&action=purge
Proof of Concept
Open up this index.html
<img src="http://[NAMELESS]/index.php?route=/panel/core/panel_templates/&action=clear_cache">
Impact
This vulnerability is capable modifying templates, clearing cache and installing modules by tricking the admin user
Occurrences
panel_templates.tpl L39L42
install_template & clear_cache html
panel_templates.php L248L286
delete template
alerts.php L24L83
purge alerts
panel_templates.php L224L245
deactivate template
modules.php L271L298
install module
panel_templates.php L187L220
activate template
panel_templates.tpl L87
activate html
alerts.tpl L1L57
purge alerts html
panel_templates.php L290L327
make_default
panel_templates.tpl L72
deactivate html
modules.tpl L32L79
install module html
panel_templates.php L159L183
install template