Reflected XSS in Simplerisk
The user field in SimpleRisk's password reset form was not sanitised, so an attacker could inject JavaScript that executes in the context of the application. This could allow stealing user sessions, performing actions on behalf of users, and hijacking session cookies.
Published on seekurity.com
Today we will discuss about a basic hunt of a reflected cross site vulnerability in SimpleRisk platform but first lets know some general details about the platform itself
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The value of the 'user' input was echoed directly to the view without being filtered.
Impact
An attacker could steal SimpleRisk user sessions, perform actions on behalf of users, and hijack session cookies.
What the attacker needed
Victim submits a crafted request; attacker can deliver a POST request (e.g., via CSRF)
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 write-up has not been written yet. The Original tab links to the source.
When a website puts user input directly into a page without cleaning it, an attacker can include code that the browser runs as if it came from the site. Here, the password reset form echoed the username back without filtering, so a crafted request could run a script in the victim's browser. That script could then act as the logged-in user.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.