
Cloud Vulnerability DB
A community-led vulnerabilities database
A self-XSS vulnerability was discovered in Ruby on Rails, identified as CVE-2022-3704, affecting the routing error page functionality. The vulnerability was initially reported through HackerOne and later escalated to the Rails team, being disclosed on October 14, 2022. The issue specifically impacts the search box functionality within the Path field of the Rails routing error page (Rails Issue).
The vulnerability exists in the route error page's search functionality where user input is handled unsafely through innerHTML usage. The issue stems from the implementation in actionpack/lib/actiondispatch/middleware/templates/routes/table.html.erb file, where the path search functionality could be exploited for XSS attacks. While classified as a self-XSS vulnerability, it represents a security concern in the framework's error handling implementation (Rails Commit).
The vulnerability allows for Cross-Site Scripting (XSS) attacks within the Rails framework's routing error page. While classified as a self-XSS with limited direct impact, it presents potential security implications if combined with other vulnerabilities or if the affected code is reused in other contexts (Rails Issue).
The issue has been fixed by removing innerHTML usage and implementing a more secure approach using DOM manipulation methods. The fix involves creating elements programmatically using document.createElement() and setting text content safely (Rails Commit).
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."