CVE Vulnerabilities

CVE-2021-33604

Encoding Error

Published: Jun 24, 2021 | Modified: Nov 21, 2024
CVSS 3.x
2.5
LOW
Source:
NVD
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
CVSS 2.x
1.2 LOW
AV:L/AC:H/Au:N/C:P/I:N/A:N
RedHat/V2
RedHat/V3
Ubuntu

URL encoding error in development mode handler in com.vaadin:flow-server versions 2.0.0 through 2.6.1 (Vaadin 14.0.0 through 14.6.1), 3.0.0 through 6.0.9 (Vaadin 15.0.0 through 19.0.8) allows local user to execute arbitrary JavaScript code by opening crafted URL in browser.

Weakness

The product does not properly encode or decode the data, resulting in unexpected values.

Affected Software

Name Vendor Start Version End Version
Flow-server Vaadin 2.0.0 (including) 2.6.1 (including)
Flow-server Vaadin 3.0.0 (including) 5.0.0 (including)
Flow-server Vaadin 6.0.0 (including) 6.0.9 (including)
Vaadin Vaadin 14.0.0 (including) 14.6.1 (including)
Vaadin Vaadin 15.0.0 (including) 18.0.0 (including)
Vaadin Vaadin 19.0.0 (including) 19.0.8 (including)

Potential Mitigations

  • Assume all input is malicious. Use an “accept known good” input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.
  • When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, “boat” may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as “red” or “blue.”
  • Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code’s environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.

References