Name of the Vulnerable Software and Affected Versions:
py-bcrypt versions prior to 0.3
Description:
The issue arises from improper handling of concurrent memory access in the py-bcrypt module, allowing attackers to bypass authentication. This is achieved through multiple authentication requests that trigger the password hash to be overwritten.
Recommendations:
For versions prior to 0.3, update to version 0.3 or later to resolve the issue. As a temporary workaround, consider implementing synchronization mechanisms to prevent concurrent access to the password hash. Restrict access to authentication endpoints to minimize the risk of exploitation.