
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-37031 affects the Active Admin (activeadmin) framework for Ruby on Rails versions before 3.2.2 and versions between 4.0.0.beta1 and 4.0.0.beta7. The vulnerability was disclosed on June 3, 2024, and involves a stored Cross-Site Scripting (XSS) vulnerability that occurs in situations where users can create entities with arbitrary names that are later edited in forms, specifically in 'dynamic form legends' (GHSA Advisory).
The vulnerability exists when form legends are set dynamically based on user-controlled input. It affects both implicit and explicit form name declarations where the value can be arbitrarily set by non-admin users. The CVSS v3.1 base score is 6.1 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N, indicating that the vulnerability is network-accessible, requires low attack complexity, needs no privileges, but does require user interaction (NVD).
When exploited, this vulnerability allows malicious users to execute arbitrary JavaScript code in the administrator's browser through stored XSS attacks. This can lead to potential data theft, session hijacking, or other malicious actions performed with the administrator's privileges (GHSA Advisory).
The vulnerability can be exploited when a public web application allows users to create entities with arbitrary names, and these entities are later managed through Active Admin in a private backend. A malicious user could create an entity with a specially crafted payload that would be executed in the administrator's browser when viewing or editing the entity (GHSA Advisory).
The vulnerability has been patched in Active Admin versions 3.2.2 and 4.0.0.beta7. As a temporary workaround, users can explicitly escape the form name using an HTML escaping utility, for example by using ERB::Util.html_escape(resource.name). Additionally, configuring a Content Security Policy that does not allow 'unsafe-inline' can help prevent the vulnerability from being exploited (GHSA Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."