Weakness (CWE)
CWE-486: Comparison of Classes by Name
Variant Draft
The product compares classes by name.
How to prevent it (1 mitigation)
-
Implementation
Use class equivalency to determine type. Rather than use the class name to determine if an object is of a given type, use the getClass() method, and == operator.
Source: MITRE CWE-486
1 result · Feed
-
High 7.2
In JetBrains TeamCity before 2026.2.2, 2026.1.6 remote code execution was possible via security context spoofing in the…