Scala
Scala : No SecurityManager checks in clone()
Classification
OWASP Top 10 2017
OWASP Top 10 2021
Overview
Security checks via SecurityManager or AccessController are present in the class constructor, but not in the clone() method. Cloneable class must produce the same checks in the clone() method.
When calling clone() the constructor is not called, therefore, security checks defined in the constructor will not be performed.
LOW
DerScanner Severity Score
Check your Scala 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.
