CWE DATABASE
About
GET A DEMO
Backslash Vulnerability Database
Object Hijack
Object Hijack
CWE-491
Short description
A class has a cloneable() method that is not declared final, which allows an object to be created without calling the constructor. This can cause the object to be in an unexpected state.
Best practices to prevent this CWE
Phase: Implementation
Make the cloneable() method final.