POC CVE WebLaudos
A reflected cross-site scripting flaw in the login page of WebLaudos allowed an attacker to inject a script through a redirect parameter. The attacker could then run their own JavaScript in a victim's browser and send the victim's cookies to a server they control.
medium.com
Published on medium.com
Ten days ago, I began a series of tests on an application called WebLaudos, developed by the company Pixeon, with the goal of identifying potential vulnerabilities. During this process, I discovered an XSS (Cross-Site Scripting) flaw.
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
Likely the login page reflected the url_redir parameter into the HTML response without encoding it, so injected markup and script tags were rendered by the browser.
Impact
An attacker could run arbitrary script in a victim's browser and steal their session cookies, though the author notes the flaw can be triggered without authentication and that a valid session token is only needed to maximise impact.
What the attacker needed
Victim opens a crafted link; attacker-hosted script server; no login needed, but a session raises impact
How it was found
- Log in to the portal to obtain a valid session token.
- Set up a Flask server with a POST endpoint to receive data and a GET endpoint to serve the JavaScript file.
- Start Ngrok and point it at port 80 so the victim can reach the attacker over HTTPS.
- Write a JavaScript file that sends the victim's cookies to the Ngrok address.
- Start the server and open the crafted login URL with the injected script in a victim's browser.
- Observe the GET request for the script and the POST request carrying the cookies.
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.
Cross-site scripting (XSS) is when a website puts text from a link into its own page without cleaning it, so an attacker can slip in code that the browser runs. Here the login page took a redirect value from the address bar and echoed it back, letting the author add a script tag. That script then read the visitor's cookies, which are small pieces of login data, and sent them to the author's own server.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.