Session Issue Maybe Can lead to huge loss [CRITICAL]
The Android app's session remained active after the device was removed from the authorised apps list on the web security settings page. An attacker with the device could still rename, delete, or make primary a wallet, potentially causing financial loss.
- Triaged in 21 hours
- Fixed in 3 days
- Paid in 3 days
- Disclosed after 29 days
Hey Coinbase, I have some found some sessions issues linking your web and the coinbase wallet means the android application, So as the user authenticates from the android app An android device linked is shown on this page : https://www.coinbase.com/settings/security_settings
POC:
- Open android app and login.
- Swife from left side and open settings and then navigate to manage accounts.
- Leave the android app in the manage accounts page and then log in to the coinbase by PC
- Open https://www.coinbase.com/settings/security_settings On pc and remove the android device from the authorized apps.
- After removing wait a little bit and then turn to your android device you will see manage accounts page and you can still 1) Rename 2) Delete an existing wallet (Which can result in money loss) 3) Make the wallet primary.
- You will see that even after removing the android device from the web it is still doing 3 tasks on the manage accounts page in the android device.
NOTE: It will keep on making changes but as you click the back button the session gets invalidated.
Mitigation : As soon an user clicks the remove android device button from the security page located at this url : https://www.coinbase.com/settings/security_settings , The session of the android app must be quickly get invalidated, If your device gets at bad hands then an USER can suffer an huge loss.
Regards, Hisham Mir
Context
Coinbase exposes a security settings page where a user can see and manage the devices and applications authorised to access their account:
https://www.coinbase.com/settings/security_settings
One of the entries on that page is an Android device linked through the Coinbase Android application (the "Coinbase wallet"). The expectation is straightforward: when a user removes a device from the authorised apps list on the web, that device should lose its access. The report is about what actually happens to the Android session after that removal.
Setup
Two clients are needed to reproduce the issue:
- The Coinbase Android application, logged in with a valid account.
- A browser on a PC, logged in to the same Coinbase account.
No special tools, proxies or modified clients are involved. The only precondition is that the Android app has been linked to the account and therefore appears in the authorised apps list on the security settings page.
Finding it
The researcher noted that once the user authenticates from the Android app, the linked Android device is displayed on the security settings page. That raised the question of what happens to the Android session when the device is removed from that page. The answer was that the Android app keeps working: it can still rename, delete and promote wallets from its manage accounts screen after the device has been removed on the web.
Exploitation
Step 1: log in on the Android app
Open the Coinbase Android application and log in. This links the Android device to the account, so it will show up on the web security settings page.
Step 2: open manage accounts in the app
Swipe from the left side to open the settings menu, then navigate to manage accounts. Leave the app sitting on this page.
Step 3: log in on the PC
With the Android app still open on the manage accounts page, log in to Coinbase from the PC browser using the same account.
Step 4: remove the Android device on the web
On the PC, open:
https://www.coinbase.com/settings/security_settings
and remove the Android device from the authorised apps.
Step 5: return to the Android device
Wait a little, then go back to the Android device. The manage accounts page is still there and the app can still perform three actions:
- Rename an existing wallet.
- Delete an existing wallet, which the researcher notes can result in money loss.
- Make a wallet primary.
Step 6: confirm the session is still live
Even after the Android device has been removed from the web, it continues to carry out those three tasks on the manage accounts page. The researcher adds one limit: the app keeps making changes, but as soon as the back button is pressed the session gets invalidated.
Root cause
Removing the device from the authorised apps list on the web does not invalidate the Android app's existing session. The app's session stays valid and continues to authorise wallet management actions; the report notes that pressing the back button invalidates the session. The report does not describe the server-side mechanism behind this, so the exact reason the removal does not propagate to the Android session is not stated; The report does not state the exact reason the removal does not propagate to the Android session.
Impact
The impact depends on the device falling into the wrong hands. If the device falls into the wrong hands, the person holding it can still rename wallets, delete wallets and change which wallet is primary. Deleting a wallet is the serious one: the researcher states it can result in money loss. The report notes that pressing back in the app invalidates the session, but until then the removed device retains its wallet management capability.
Fix
The researcher's proposed mitigation is that as soon as the user clicks the remove android device button on the security settings page, the Android app's session must be invalidated quickly. The report does not say whether or how the issue was fixed.
Variants to test
- Remove a linked mobile device while the app is on a sensitive screen and check whether actions on that screen still succeed. A positive result is any state-changing action that completes after removal.
- Try the same removal against other linked clients (desktop apps, API tokens, other OAuth-style integrations) and see whether their sessions survive. A positive result is a removed client that still authenticates.
- Check whether the invalidation only happens on a specific navigation event, as with the back button here, and whether other navigation paths leave the session alive. A positive result is a session that stays valid across normal navigation after removal.
- Test whether re-authenticating or refreshing the app after removal restores access without re-linking. A positive result is continued access with no new authorisation step.
Hunting notes
This kind of bug hides in the gap between an account's list of authorised devices and the sessions those devices actually hold. During recon, look for security settings pages that list devices or apps, then ask whether removing an entry revokes the underlying session or only the listing. The signal is a mobile or desktop client that keeps working after it has been removed. To show impact, demonstrate a concrete state-changing action performed from the removed client, as this report does with wallet rename, delete and primary-wallet changes, and note any condition that eventually ends the session.
What happened, in plain words
Coinbase is a service where people hold and move cryptocurrency. It has a website and an Android phone app (the report calls the app the "Coinbase wallet"). Both are ways to reach the same account.
On the website there is a security settings page. It lists the devices and applications that are allowed to use your account. If you lose a phone, or you no longer trust a device, you go to that page and remove it from the list. The natural expectation is that the removed device immediately loses its access.
The researcher found that this is not what happens. After an Android device is removed from the list on the website, the Android app that is already open keeps working. It can still rename wallets, delete wallets and change which wallet is the primary one. Deleting a wallet can mean losing money. The report notes that when the user presses the back button inside the app, the session gets invalidated.
So the removal on the website changes the list, but it does not end the session the phone already holds. A session is the state of being logged in: the proof the app carries that says "this is the account owner". If that proof is not cancelled, the app can keep acting as the owner even though the website says the device is gone.
Context
Coinbase has a page where you can see and manage the devices and applications that are authorised to access your account:
https://www.coinbase.com/settings/security_settings
This is a normal web page you open in a browser. "Authorised" means "given permission". Each entry on the page is a device or app that has been allowed to use the account at some point.
One of those entries is an Android device linked through the Coinbase Android application. "Linked" means the app was logged in and the account now recognises that phone as one of its devices.
The expectation is simple: when you remove a device from the authorised apps list on the web, that device should lose its access. The report is about what actually happens to the Android session after that removal.
Setup
To reproduce the issue you need two clients. A client is simply a program that talks to Coinbase: here, the phone app and the browser.
- The Coinbase Android application, logged in with a valid account.
- A browser on a PC, logged in to the same Coinbase account.
No special tools, proxies or modified clients are involved. A proxy is a program that sits between your app and the server and lets you inspect or change the traffic; none is needed here. The only precondition is that the Android app has been linked to the account, so it appears in the authorised apps list on the security settings page.
Finding it
The researcher noticed that the Android app and the web account share a session relationship: once the user authenticates from the Android app, the linked Android device is displayed on the security settings page. "Authenticates" means proves who you are, usually by logging in with your username and password (and possibly a second factor).
That raised a question: what happens to the Android session when the device is removed from that page? The answer was that the Android app keeps working. It can still rename, delete and promote wallets from its manage accounts screen after the device has been removed on the web.
A wallet, in this context, is the part of the account that holds the cryptocurrency. Renaming it changes its label. Deleting it removes it. Making it "primary" marks it as the default one. All three are actions that change the state of the account, not just views of it.
Exploitation
Step 1: log in on the Android app
Open the Coinbase Android application and log in. This links the Android device to the account, so it will show up on the web security settings page. Logging in is what creates the session on the phone: the app receives something from the server that it can present on later requests to prove it is still the logged-in user.
Step 2: open manage accounts in the app
Swipe from the left side to open the settings menu, then navigate to manage accounts. Leave the app sitting on this page. Leaving it there matters because the goal is to test whether that already-open screen can still perform actions later, after the device has been removed elsewhere.
Step 3: log in on the PC
With the Android app still open on the manage accounts page, log in to Coinbase from the PC browser using the same account. The browser gets its own session, separate from the phone's. This step is needed so the researcher can reach the security settings page on the web as the account owner.
Step 4: remove the Android device on the web
On the PC, open:
https://www.coinbase.com/settings/security_settings
and remove the Android device from the authorised apps. This is the action a user would take to remove a device from the authorised apps list. The whole point of the test is to see whether this action actually cuts the phone off.
Step 5: return to the Android device
Wait a little, then go back to the Android device. The manage accounts page is still there and the app can still perform three actions:
- Rename an existing wallet.
- Delete an existing wallet, which the researcher notes can result in money loss.
- Make a wallet primary.
Each of these is a change to the account, made from a device that the website now says is no longer authorised. The report says to wait a little before returning to the Android device.
Step 6: confirm the session is still live
Even after the Android device has been removed from the web, it continues to carry out those three tasks on the manage accounts page. The researcher adds one limit: the app keeps making changes, but as soon as the back button is pressed the session gets invalidated. "Invalidated" means the session is ended and can no longer be used.
The report notes that pressing the back button invalidates the session, not the removal on the website.
Root cause
Removing the device from the authorised apps list on the web does not invalidate the Android app's existing session. The app's session stays valid and continues to authorise wallet management actions until something else ends it, in this case navigating back in the app.
The report does not describe the server-side mechanism behind this, so the exact reason the removal does not propagate to the Android session is not stated. The report does not describe the server-side mechanism behind this. A session token is the piece of data the app sends with each request to prove it is logged in; if the server never cancels that token, the app keeps being treated as logged in.
Impact
The impact depends on the device falling into the wrong hands. If the device falls into the wrong hands, the person holding it can still rename wallets, delete wallets and change which wallet is primary. Deleting a wallet is the serious one: the researcher states it can result in money loss.
The report notes that pressing back in the app invalidates the session, but until then the removed device retains its wallet management capability.
Fix
The researcher's proposed mitigation is that as soon as the user clicks the remove android device button on the security settings page, the Android app's session must be invalidated quickly.
Variants to test
These are follow-up tests in the same spirit, for anyone who wants to check whether the same weakness appears elsewhere.
- Remove a linked mobile device while the app is on a sensitive screen and check whether actions on that screen still succeed. A positive result is any state-changing action that completes after removal.
- Try the same removal against other linked clients (desktop apps, API tokens, other OAuth-style integrations) and see whether their sessions survive. A positive result is a removed client that still authenticates. An API token is a string a program uses instead of a password to call a service; OAuth-style integrations are apps you have allowed to act on your behalf.
- Check whether the invalidation only happens on a specific navigation event, as with the back button here, and whether other navigation paths leave the session alive. A positive result is a session that stays valid across normal navigation after removal.
- Test whether re-authenticating or refreshing the app after removal restores access without re-linking. A positive result is continued access with no new authorisation step.
Hunting notes
This kind of bug hides in the gap between an account's list of authorised devices and the sessions those devices actually hold. During recon, look for security settings pages that list devices or apps, then ask whether removing an entry revokes the underlying session or only the listing. Recon means the early phase of exploring a target to see what it offers.
The signal is a mobile or desktop client that keeps working after it has been removed. To show impact, demonstrate a concrete state-changing action performed from the removed client, as this report does with wallet rename, delete and primary-wallet changes, and note any condition that eventually ends the session.
Glossary
- Account: the record on Coinbase that belongs to one user and holds their wallets and settings.
- Android application: the Coinbase app installed on an Android phone.
- API: a way for one program to talk to another over the network, sending requests and receiving responses.
- API token: a string a program presents instead of a password to prove it is allowed to call an API.
- Authenticate: to prove who you are, usually by logging in.
- Authorised: given permission to access the account.
- Authorised apps list: the list on the security settings page of devices and applications allowed to use the account.
- Browser: the program you use to open web pages, such as Chrome or Firefox.
- Client: a program that talks to a server, such as a phone app or a browser.
- Coinbase wallet: here, the Coinbase Android application; more generally the part of the account that holds cryptocurrency.
- Cookie: a small piece of data a website stores in your browser and sends back with later requests, often used to keep you logged in.
- Invalidate: to end something so it can no longer be used, for example ending a session.
- Linked device: a device that has logged in and is now recognised by the account.
- Manage accounts screen: the screen in the Android app where wallets can be renamed, deleted or made primary.
- Mitigation: a change that reduces or removes the risk.
- OAuth-style integration: an app you have allowed to act on your behalf without giving it your password.
- Primary wallet: the wallet marked as the default one.
- Proxy: a program that sits between a client and a server and can inspect or change the traffic.
- Recon: the early exploration of a target to learn what it offers.
- Remove (a device): to take a device off the authorised apps list.
- Revoke: to cancel something, such as a session token, so it stops working.
- Root cause: the underlying reason a bug happens.
- Security settings page: the Coinbase web page at
https://www.coinbase.com/settings/security_settingswhere devices and apps are managed. - Server: the computer on Coinbase's side that receives requests and decides what to do with them.
- Session: the state of being logged in, backed by data the client sends with each request.
- Session token: the piece of data a client sends to prove it is logged in; if it is not cancelled, the client stays logged in.
- State-changing action: an action that changes something in the account, such as renaming or deleting a wallet, rather than just viewing it.
- Two-factor authentication: a second proof of identity beyond the password, such as a code from a phone.
- Wallet: the part of a Coinbase account that holds cryptocurrency.