CWE-412

Unrestricted Externally Accessible Lock

Medium

Description

The product properly checks for the existence of a lock, but the lock can be externally controlled or influenced by an actor that is outside of the intended sphere of control.

Potential Impact

How to Fix

Architecture and Design

Use any access control that is offered by the functionality that is offering the lock.

Architecture and Design

Use unpredictable names or identifiers for the locks. This might not always be possible or feasible.

Architecture and Design

Consider modifying your code to use non-blocking synchronization methods.

Detection Methods

Related Weaknesses

References

View on MITRE CWE Database →

Need Help Fixing This Vulnerability?

Our security experts can help you identify and remediate CWE-412 vulnerabilities in your codebase.

Get Security Assessment