Cross-site Scripting (XSS) - Stored in omeka/omeka-s
Reported on
Jul 6th 2021
✍️ Description
Stored xss bug using a xss payload in the Title when adding a new site. the xss is getting executed when you are trying to delete the website, see the PoC for details.
🕵️♂️ Proof of Concept
Goto http://localhost/omeka/omeka-s/admin/site and click on add new site copy paste the following xss payload in the Title field.
"><img src=x onerror=alert(document.cookie)>
Click on save.
Click on sites(1) and then click on the delete(2) button and see the xss poppin up.
💥 Impact
Possible to steal admin cookies or take over another account via cookie grepping.
💥 Remediation
Validate user input
💥References
https://owasp.org/www-community/attacks/xss/
https://en.wikipedia.org/wiki/Cross-site_scripting
https://www.acunetix.com/websitesecurity/cross-site-scripting/
https://www.imperva.com/learn/application-security/cross-site-scripting-xss-attacks/