First bug on VDP program
A security-question update form accepted a GET request with a method-override parameter, so a cross-site request could change a victim's security question and answer. An attacker who lured a logged-in user to a crafted page could then use the reset flow with the new answer to take over the account.
hey there in this write up I'll talk about how I discover my first 3 bugs on a VDP program which i ‘ll mention it as target.com let’s get start
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 security-question update endpoint accepted a GET request with a method-override parameter, so the SameSite=Lax cookie protection did not stop the state change.
Impact
An attacker could change a victim's security question and answer and then reset the password, leading to account takeover, provided the victim visits the crafted page while logged in.
What the attacker needed
Victim is logged in; victim visits attacker page; attacker knows victim email
How it was found
- Create an account and note the requests and responses for each function.
- Notice that cookies use SameSite=Lax and that the notification form still works when the form field is empty.
- Find that a GET request with a method-override parameter bypasses the SameSite=Lax restriction.
- Apply the same bypass to the security-question form and build a page that submits the change.
- Host the page, open it in the logged-in browser, then use the forgot-password flow with the new answer to reset the password.
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 website often trusts requests that come with the user's login cookie. Here the site let a simple link-style request change the account's security question and answer, even though the cookie was set to a safer mode. Because the security question is used to reset a password, changing it lets someone else reset the password and get into the account.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.