What it is
The product uses the wrong operator when comparing a string, such as using == when the .equals() method should be used instead.
Impact on systems
| Scope | Impact |
|---|---|
| Other | Varies by Context While this weakness often only affects program correctness, if the equality is used for a security decision, the unintended comparison result could be leveraged to affect program security. |
How to prevent it
Source: MITRE CWE catalog · Official entry on the MITRE website