PT-2024-5871 · Unknown+2 · Ruby On Rails+2
Ooooooo-Q
·
Published
2024-02-24
·
Updated
2025-05-17
·
CVE-2024-26143
CVSS v2.0
6.4
Medium
| Vector | AV:N/AC:L/Au:N/C:P/I:P/A:N |
Name of the Vulnerable Software and Affected Versions
Ruby on Rails versions prior to 7.1.3.1
Ruby on Rails versions prior to 7.0.8.1
Description
There is a possible XSS vulnerability when using the translation helpers in Action Controller. Applications using translation methods like
translate, or t on a controller, with a key ending in " html", a :default key which contains untrusted user input, and the resulting string is used in a view, may be susceptible to an XSS vulnerability. The vulnerability is related to the incorrect neutralization of input data during web page generation, which can allow an attacker to conduct cross-site scripting.Recommendations
For versions prior to 7.1.3.1, update to version 7.1.3.1 to fix the vulnerability.
For versions prior to 7.0.8.1, update to version 7.0.8.1 to fix the vulnerability.
As a temporary workaround, consider disabling the use of translation methods like
translate or t on controllers with keys ending in " html" and default values containing untrusted user input, until a patch is available.
Restrict access to the vulnerable translation helpers in Action Controller to minimize the risk of exploitation.
Avoid using the :default key with untrusted user input in the affected translation methods until the issue is resolved.Exploit
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Red Os
Ruby On Rails