Java : Singleton not thread-safe
Classification
Overview
Used class is a singleton. In a multithreaded environment, this may lead to a compromise of data.
Singleton exists in a single copy, its fields are available to all users. As a result, a user can access the data of another user.
The Servlet class is a singleton. Its single instance is used to process all requests, some of which may act almost simultaneously from different threads. As a result, data relating to one user after saving into the Servlet class field become available to another user.
DerScanner Severity Score
Check your Java code for this vulnerability, free
Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.
Try it on your code, free
By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.
