Look This !
A reflected cross-site scripting flaw in a country-data endpoint allowed an attacker to inject a script that could read a CSRF token and change the victim's profile data, including email, leading to account takeover. A separate open redirect in a nextUrl parameter could send users to an attacker-controlled site, and the author suggests it might also enable OAuth account linking or XSS.
medium.com
Published on medium.com
Hello hackers , In Fact, I Thought The Topic Was Very Simple, And It Is. But With The Repetition Of The Same Idea In More Than One Target And Program , I Wanted To Share This Tip Or Idea !
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
Impact
An attacker could execute arbitrary JavaScript in a victim's browser to change their profile data and email, leading to account takeover; the open redirect could send users to a malicious site, and the author claims it might also enable OAuth account linking or XSS on other targets.
What the attacker needed
Victim clicks a crafted link; attacker has an account on the site; victim is logged in
How it was found
- Register an account and choose a country value that triggers a GET request to a country-data endpoint.
- Observe the request in Burp and note the id parameter is reflected in the response.
- Directly access the endpoint with a crafted id value to inject script.
- Use the injected script to fetch the profile update page, extract the CSRF token, and submit a POST request changing the victim's email and other details.
- For the open redirect, find the nextUrl parameter and try adding an external domain, which is rejected.
- Bypass the allow-list by appending a fragment with an allowed domain, e.g. attacker.com#google.com, and the redirect goes to attacker.com.
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.
The website had a page that took a value from the address bar and put it directly into the page without cleaning it. An attacker could craft a link that, when clicked, ran their own code in the victim's browser and used the victim's logged-in session to change their account details. Separately, a redirect parameter could be tricked into sending users to a fake site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.