Value of JSESSIONID and XSRF token parameter in cookie remains same before and after login
The session identifier cookie and the anti-CSRF token cookie kept the same values before and after a user logged in. The reporter claims this could enable session hijacking, though no exploitation is shown.
Originally disclosed on HackerOne
- Fixed in 45 days
- Paid in 45 days
- Disclosed after 2 months
Here are two same values captured via intercepting the request and the value of JSESSIONID and XSRF remains same before and after login JSESSIONID=m8u0pm8mjvckm1ya8da4oqlfb0pd34iw38lr; XSRF-TOKEN=6B025F41D13BC02E9D658409BAC23F84;
This could lead to further threats such as session hijacking etc
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
If an attacker could obtain the pre-login session cookie, it may remain valid after the victim authenticates, potentially enabling session hijacking; the report does not demonstrate this.
What the attacker needed
Attacker can obtain the pre-login cookie
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 report has not been written yet. The Original tab links to the source.
When you log in, a website usually gives you a fresh session cookie so that any cookie captured before login becomes useless. Here the cookie stayed the same, so an attacker who somehow obtained the pre-login cookie might be able to keep using it after the victim logs in. The report does not show that actually happening.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.