Logout CSRF
The logout endpoint on the demo site accepted a simple GET request without a CSRF token, so an attacker could force any logged-in user to be logged out by getting them to load a crafted URL. The impact is limited to a nuisance logout, not account compromise.
- Triaged in under an hour
- Fixed in under an hour
- Disclosed after 23 days
Hi Team,
This is a low risk but want you to know that logout on this domain demo.weblate.org did not protect the logout form with csrf token, therefor i can logout any user by sending this url https://demo.webplate.org/accounts/logout/.
Logout should have post method with a valid csrf token.
Let me know if you need more info.
Regards Japz
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
Root cause
Likely the logout view accepted GET requests and did not require a CSRF token, so any cross-site request could trigger it.
Impact
An attacker could log a victim out of the site, which is a low-impact nuisance and does not give access to the account.
What the attacker needed
Victim is logged in; victim loads an attacker-controlled link
How it was found
- Log in to the demo site.
- Send the logout URL as a request to the site.
- Observe that the session is ended without a CSRF token being supplied.
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 gives your browser a cookie so it knows who you are. A CSRF attack tricks your browser into sending a request to that site while you are logged in, without you meaning to. Here the logout action could be triggered just by visiting a link, so someone could log you out unexpectedly.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.