Improper Handling of Unicode Encoding
ID |
scala.strings.scala_strings_rule_improperunicode |
Severity |
high |
Resource |
Strings |
Language |
Scala |
Rationale
Improper Handling of Unicode Encoding
The following code illustrates a vulnerable pattern detected by this rule:
def dangerToUpperEquals(s: String) = {
// VULNERABLE: Improper Handling of Unicode Encoding
s.toUpperCase().equals("TEST")
}
Remediation
Follow secure coding practices and review the references below for detailed remediation guidance.
References
-
OWASP Top 10 2021 - A03 : Injection.