une XSS simple sur la page de login CVE-2024–48410
The login page of Camtrace reflected the value of the login field without filtering or encoding, so a script tag entered there ran in the browser. An attacker could use this to steal an administrator's session or run malicious JavaScript in a sensitive context.
Aujourd’hui, je voulais partager une petite vulnérabilité que j’ai découverte sur un ancien système de caméras que j’avais utilisé il y a quelque temps : Camtrace. Rien de très poussé à la base — je voulais juste écrire un article en rapide, un truc simple, propre, sur un test fait un jour où j’avais un peu de temps.
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 field's value was echoed back into the page without output encoding and without a Content Security Policy to limit script execution.
Impact
An attacker could steal an administrator's session, inject malicious JavaScript in a sensitive context, and use the device as a foothold into the internal network, especially where instances are exposed and poorly segmented.
What the attacker needed
Access to the login page; victim opens a crafted link
How it was found
- Open the login page at the stated path.
- Enter a script payload in the login field.
- Submit and observe that the script executes.
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.
A reflected cross-site scripting (XSS) bug means the website takes something you type and puts it straight back into the page without cleaning it. If what you type includes code, the browser runs that code as if the site itself had written it. Here the login box did exactly that, so a crafted link could make a victim's browser run the attacker's script.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.