The product uses the wrong operator when comparing a string, such as using "==" when the .equals() method should be used instead.
Within Java, use .equals() to compare string values. Within JavaScript, use == to compare string values. Within PHP, use == to compare a numeric value to a string value. (PHP converts the string to a number.)
Our security experts can help you identify and remediate CWE-597 vulnerabilities in your codebase.
Get Security Assessment