“The Subtle Art of Deception: Hunting Content Spoofing and Sess
The article describes content spoofing where user input in URL parameters is reflected unsanitised, allowing fake messages, and session management flaws where password changes do not invalidate existing sessions. An attacker could combine these to create convincing phishing pages on the legitimate domain and maintain access after a password reset.
Published on amannsharmaa.medium.com
The customer support email was frantic. “Your account has been compromised! Click here to secure it immediately.” The link went to the legitimate banking domain, but the page displayed a terrifying message: “Funds transfer initiated — click to cancel.” Several employees almost fell for it.
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 application reflects user-supplied URL parameters directly into the page without sanitisation, and fails to invalidate existing sessions upon password change.
Impact
An attacker could craft phishing links on the legitimate domain to steal credentials and, if sessions are not invalidated, maintain access even after a password reset, potentially leading to account takeover.
What the attacker needed
Victim clicks a crafted link; attacker has stolen credentials; password change does not invalidate sessions
The fix
The application should sanitise or encode reflected user input and invalidate all existing sessions when a password is changed.
How it was found
- Notice that error messages are passed in the URL as a parameter.
- Change the error parameter to a custom message and observe it displayed on the page.
- Discover an open redirect parameter that can send users to an external site.
- Combine the spoofed message with the redirect to create a convincing phishing link.
- Test session invalidation by logging in from two browsers, changing the password in one, and checking if the other session remains active.
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.
Content spoofing is when a website takes text from the web address and shows it on the page without checking it, so an attacker can make the site display any message they want. Session flaws mean that after you change your password, old logins stay active, so someone who already had access can keep using it. Together, these let an attacker trick people into giving away passwords and then keep access even after the victim tries to secure their account.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.