Cross-site Scripting (XSS) - Stored in ampache/ampache
Reported on
Oct 14th 2021
Description
ampache has a stored XSS in the View Existing User , an attacker could exploit with the Website attribute to steal the other users' cookie
Proof of Concept
- Visit http://ampache//index.php#preferences.php?tab=account
set the Website attribut toe:
foo" onmouseover=alert(document.cookie) //
User-Level's view
When the other user (such as Administrator) are browsing users
http://ampache/#admin/users.php
Administrator's view
Impact
This vulnerability is capable of ● Steal the other user's cookie, forging their identity ● The end user’s browser has no way to know that the script should not be trusted, and will execute the script. ● These scripts can even rewrite the content of the HTML page. For more details on the different types of XSS flaws, see: Types of Cross-Site Scripting.