delayed_job_web rails gem XSS vulnerability
The delayed_job_web gem reflects the query string used for filtering output back into the page without proper neutralisation. An attacker could phish an authenticated user with a crafted URL to run arbitrary JavaScript in that user's browser.
Originally disclosed on Cisco Talos
An exploitable XSS vulnerability exists in the filter functionality of the delayedjobweb rails gem version 1.4. A specially crafted URL can cause an XSS flaw resulting in an attacker being able to execute arbitrary javascript on the victim’s browser.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The filter value taken from the query string is written into the generated page without output encoding.
Impact
An attacker could run arbitrary JavaScript in an authenticated user's browser, though the built-in protections of Safari and Chrome blocked it and only Firefox was exploitable.
What the attacker needed
Victim is authenticated; victim clicks a crafted link; victim uses Firefox
How it was found
- Open the overview page with a crafted filter value in the query string.
- The value is reflected into the page and the script runs in Firefox.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This gem adds a web page for viewing background jobs, and it lets you filter the list using values in the URL. It puts those values straight into the page without cleaning them, so a link containing code can make the victim's browser run that code. This is called cross-site scripting, or XSS.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.