The 'Create a New Account' action is vulnerable to CSRF
The account wallet creation request lacked an anti-CSRF token, so a malicious page could submit it on behalf of a logged-in user. An attacker could cause a victim to create a new wallet without their knowledge.
- Disclosed after 6 months
The request to create an account wallet doesn't validate if the request is originating from the user itself with the help of an anti-CSRF token.
Step 1: Craft an HTML page with request to create a wallet in your accounts page. https://www.coinbase.com/accounts > New Account > Wallet
Step 2: Open the HTML page in a tab of the browser where a user is already logged in to coinbase. It can be observed that a wallet is created.
PS: In some browsers this may not work. It should be noted that it is not because the application doesn't have a proper CSRF mitigation mechanism, rather the parameter utf8 is improperly rendered.
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 wallet creation endpoint did not require or validate an anti-CSRF token, relying only on the session cookie.
Impact
An attacker could create a new wallet in a logged-in victim's account without their consent, though the report notes this may not work in some browsers due to a rendering issue with the utf8 parameter.
What the attacker needed
Victim logged in to Coinbase; victim visits attacker page; browser that renders the utf8 parameter correctly
How it was found
- Craft an HTML page that sends the request to create a wallet from the accounts page.
- Open that HTML page in a browser tab where the user is already logged in to Coinbase.
- Observe that a wallet is created.
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 are logged in to a website, your browser automatically sends your session cookie with every request to that site. A cross-site request forgery (CSRF) attack tricks your browser into sending a request the site trusts, because it comes with your cookie, even though you never intended to make it. Here, creating a wallet did not require a secret token that only the real site page would know, so another page could trigger it.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.