P4 bug’s and their POC steps | Part 6
The article describes two low-severity issues: a login page reflects a URL parameter into the page, letting an attacker alter the displayed message, and a password change does not end other active sessions. An attacker could use the reflected text to trick users, or keep using an old session after the victim changes their password.
Published on medium.com
Read For Free — https://nexguardians.com/p4-bugs-and-their-poc-steps-part-6/
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 echoes a URL parameter without sanitising it, and the application does not revoke existing sessions when the password changes.
Impact
The reflected text could trick a user into entering data elsewhere, and an old session may stay usable after a password change, which could damage the company's reputation.
What the attacker needed
Victim clicks a crafted link; attacker has an active session; victim changes password
The fix
The site should sanitise or encode URL parameters before displaying them, and it should invalidate all other sessions when a password is changed.
How it was found
- Open the login page with an error parameter in the URL.
- Change the error parameter value to different text.
- Press enter and see the changed message on the page.
- Log in to the same account in two separate browsers.
- Change the password in the first browser.
- In the second browser, edit and save profile data, then refresh to see it changed.
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 web page sometimes takes text from the address bar and shows it on the page. If it does not clean that text, someone can put their own message there, which looks like it comes from the real site. Separately, when you change your password, the site should log out other browsers; if it does not, anyone already logged in stays logged in.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.