Multiple Issues related to registering applications
An OAuth application submitted for review could be accessed and installed by other users before approval, and the screenshot upload feature accepted executable files without restriction. An attacker could trick users into installing a malicious app and potentially upload dangerous files.
Originally disclosed on HackerOne
- Triaged in 24 days
- Fixed in 24 days
- Paid in 24 days
- Disclosed after 54 days
On the page https://coinbase.com/oauth/applications, an authenticated coinbase user can create an application and successfully submit it to the app gallery.
After submitting, the app is pending review to be approved. However, while the app is in review, the coinbase user can send a URL (something like https://coinbase.com/apps/533fb2cb6e90eb79b9000103) to access the app to other users directly. In other words, the app is accessible to other users even without being reviewed by the coinbase team. The coinbase user might have malicious intentions and can trick other users to install the malicious app.
Other users can also leave their reviews on this application.
Lastly, after submitting an app for approval, there is an option to upload screenshots. There did not seem to be any restrictions on the kind of files that can be uploaded. I was able to upload an executable and I got a message saying it was successfully uploaded. I could not verify it because I believe it will only be visible once approved.
Context
Coinbase runs an OAuth applications feature. An authenticated user can register an application at https://coinbase.com/oauth/applications and submit it to the app gallery. Submitted applications are meant to go through a review by the Coinbase team before they become available to other users. The report looks at what happens between submission and approval, and at the file upload that sits alongside the submission flow.
Setup
The only precondition is an authenticated Coinbase account. No special role, tool or version is mentioned. The researcher used the normal application registration page and the app gallery submission flow.
Finding it
Two things looked wrong during a normal submission:
- A submitted app is supposed to be pending review, yet the researcher found that the app could already be reached by other users through a direct URL while it was still in review.
- The screenshot upload offered after submitting an app appeared to accept any file type. The researcher uploaded an executable and received a success message.
Exploitation
Step 1: Create and submit an application
As an authenticated user, go to the registration page and create an application, then submit it to the app gallery:
https://coinbase.com/oauth/applications
After submission the app is pending review for approval. That is the intended state: not yet visible to anyone else.
Step 2: Share the direct app URL while the app is in review
While the app is still in review, the owner can send a URL of this shape to other users:
https://coinbase.com/apps/533fb2cb6e90eb79b9000103
The URL points at the app by a long identifier in the path. Opening that URL gives another user access to the app even though the Coinbase team has not reviewed it. The review step therefore does not gate access; it only gates whatever listing or approval state the gallery shows.
Step 3: Other users interact with the unreviewed app
Other users who open the link can install the app. They can also leave reviews on it. Both actions happen against an application that has not been approved.
Step 4: Upload an arbitrary file as a screenshot
After submitting an app for approval, the flow offers an option to upload screenshots. The researcher found no restriction on the kind of file that can be uploaded. An executable was accepted and the response said it had been uploaded successfully. The researcher could not verify the result further, because the belief was that uploaded screenshots only become visible once the app is approved.
Root cause
The app page could be reached by other users through its direct URL while the app was still in review. The review did not stop other users from opening the app through its direct URL. The screenshot upload appeared to accept any file type: an executable was accepted and reported as uploaded. The report describes the behaviour but does not analyse the underlying cause.
Impact
An authenticated user can distribute an unreviewed application to other Coinbase users by sharing its direct URL, and those users can install it and leave reviews. A user with malicious intent can use this to trick others into installing a malicious app that has never passed review. Separately, an executable can be stored through the screenshot upload, although the report does not confirm where or whether it becomes reachable, since the researcher expected screenshots to appear only after approval.
Fix
The report does not state what was changed. The changes it implies are: enforce the review state on the app page so that an app in review cannot be opened or installed by anyone other than its owner, and restrict the screenshot upload to expected image types, rejecting executables.
Variants to test
- Request an object in a pending or draft state directly by ID, as another user. A positive result is a full page or API response for the object instead of a not-found or forbidden response.
- Perform state-changing actions on an unreviewed object, such as installing it or posting a review. A positive result is a successful action recorded against an object that has not been approved.
- Upload non-image files to any upload field tied to a review workflow. A positive result is a success message for an executable or other unexpected type.
- Compare the owner's view and another user's view of the same pending object. A positive result is that the second user sees the same content as the owner.
Hunting notes
This kind of bug hides in workflows that separate submission from publication: app galleries, plugin and extension stores, marketplace listings, and anything with a draft or pending state. During recon, look for features where a user submits content for approval and receives a link to it, then check whether that link works for a second account before approval. The signal is a predictable object ID in the URL and a page that renders for accounts that should not see it yet. The report notes that other users could access, install and review the unreviewed app. which turns a workflow gap into a distribution channel for a malicious app. The upload finding was reported with the limit that visibility after approval could not be confirmed.
What happened, in plain words
Coinbase is a service for buying, selling and storing cryptocurrency. Like many online services, it lets outside developers build small programs, called applications or apps, that plug into a Coinbase account. A user can register one of these apps on a Coinbase page and then submit it to a public catalogue, the app gallery, so that other people can find and install it.
Because an app can ask for access to someone's account, Coinbase does not want just anything in the gallery. The plan is that every submitted app waits in a queue and is checked by the Coinbase team before other users can see it. This check is called review, and an app waiting in that queue is described as pending review.
An authenticated Coinbase user went through the normal submission process. Two things looked wrong.
First, an app that was still waiting for review could already be opened by other people. The owner could send other users a direct web address (a URL) pointing at the app, and the app was accessible to them even though nobody at Coinbase had approved it. Those other people could install the app and even leave reviews on it.
Second, the submission process offers a place to upload screenshots, which are pictures showing what the app looks like. The upload did not appear to care what kind of file was sent. The researcher uploaded an executable, a file that a computer can run as a program, and the site replied that the upload had succeeded. He could not check any further, because he believed screenshots only become visible after an app is approved.
Put together, the first issue means a malicious person could hand out an unreviewed app to other users and persuade them to install it. The second means a non-picture file could be stored where pictures are expected.
Background you need
A few ideas come up again and again below, so here they are from scratch.
- Account and authentication. An account is your personal space on a website, protected by a username and password. Being authenticated simply means you have proved you are the owner of that account, usually by logging in. Everything in this report happens while logged in as a normal user.
- OAuth. This is a standard way for one website or app to ask another service for limited access to your account, without you handing over your password. When you see a button like "Sign in with..." or "Connect your account", OAuth is often what is happening behind the scenes. Coinbase's OAuth applications feature is the part of Coinbase that lets developers build and register such apps.
- App gallery. A catalogue of apps that users can browse and install, similar to an app store on a phone.
- Review and pending review. Review is a human check: someone at the company looks at a submitted app before it is published. Pending review means the app has been submitted and is waiting for that check. The whole point of a review is that nothing reaches other users until it has passed.
- URL. The address of a page on the web, such as
https://coinbase.com/oauth/applications. Typing or clicking a URL takes your browser to that page. - ID. A unique identifier. Websites often give every object they store (a user, an order, an app) a long string of letters and numbers so it can be told apart from every other object. If you know an object's ID, you can often build a URL that points straight at it.
- Access control. The rules that decide who is allowed to see or do what. A good access control rule for a pending app would be: only its owner may open it until it is approved. Access control based on knowing a URL means: anyone who has the link can get in. That is much weaker, because links get shared.
- File upload and file type validation. When a website lets you attach a file, it can inspect the file and refuse types it does not want. Checking the type is called validation. Without it, the site accepts whatever it is given.
- Executable. A file that a computer can run as a program, as opposed to a picture or a text document. Uploading one where a picture is expected is a classic sign that validation is missing.
- Vulnerability class. This report is filed under "Violation of Secure Design Principles". That means the problem is not a broken lock that someone picked, but a design that never had the right lock in the first place: the review step was treated as a workflow stage rather than as a security boundary.
Context
Coinbase runs an OAuth applications feature. An authenticated user can register an application at https://coinbase.com/oauth/applications and submit it to the app gallery. Submitted applications are meant to go through a review by the Coinbase team before they become available to other users. The report looks at what happens between submission and approval, and at the file upload that sits alongside the submission flow.
In plain terms: the page above is the developer's workbench. You fill in details about your app there and press submit. From that moment until a Coinbase reviewer approves it, the app should be invisible to everyone except you. The report examines that waiting period, and also the screenshot upload that is part of the same submission process.
Setup
The only precondition is an authenticated Coinbase account. No special role, tool or version is mentioned. The researcher used the normal application registration page and the app gallery submission flow.
This matters for judging severity: no insider access, no special software and no unusual configuration were needed. Anyone who can sign up and log in could follow the same steps in a browser.
Finding it
Two things looked wrong during a normal submission:
- A submitted app is supposed to be pending review, yet the researcher found that the app could already be reached by other users through a direct URL while it was still in review.
- The screenshot upload offered after submitting an app appeared to accept any file type. The researcher uploaded an executable and received a success message.
Neither finding came from attacking the site. Both were noticed while using the feature the way it is meant to be used, which is often how design problems surface: the feature does what it was built to do, and what it was built to do is not what the security plan required.
Exploitation
Step 1: Create and submit an application
As an authenticated user, go to the registration page and create an application, then submit it to the app gallery:
https://coinbase.com/oauth/applications
Line by line, this is just one address:
https://is the secure web protocol, the padlock part of a URL.coinbase.comis the site being visited./oauth/applicationsis the path to the page where a logged-in user manages OAuth applications.
Why this step: you cannot test what happens to a submitted app without first submitting one. The researcher created an app through the ordinary form, exactly as a legitimate developer would, and sent it to the gallery. After submission the app is pending review for approval. That is the intended state: not yet visible to anyone else.
Step 2: Share the direct app URL while the app is in review
While the app is still in review, the owner can send a URL of this shape to other users:
https://coinbase.com/apps/533fb2cb6e90eb79b9000103
Line by line:
https://coinbase.comis again the Coinbase site./apps/is the path that serves an individual app's page.533fb2cb6e90eb79b9000103is the app's own ID, the long string of letters and numbers that identifies this particular app. It is a long string of letters and numbers in the URL.
The identifier in the path is the app's own ID. Opening that URL gives another user access to the app even though the Coinbase team has not reviewed it. The review step therefore does not gate access; it only gates whatever listing or approval state the gallery shows.
Why this step matters: the link to a pending app could be shared, and the app was accessible to other users even though it had not been reviewed. The barrier existed only in the gallery listing, not on the page itself.
Step 3: Other users interact with the unreviewed app
Other users who open the link can install the app. They can also leave reviews on it. Both actions happen against an application that has not been approved.
This is what turns a small design gap into a real risk. Seeing a page is one thing; installing the app is another, because installing means granting the app whatever access it asks for on your Coinbase account. Leaving a review adds a second problem: reviews are a trust signal, and here they can be attached to an app that no reviewer has ever looked at. Reviews could be attached to an app that no reviewer had looked at.
Step 4: Upload an arbitrary file as a screenshot
After submitting an app for approval, the flow offers an option to upload screenshots. The researcher found no restriction on the kind of file that can be uploaded. An executable was accepted and the response said it had been uploaded successfully. The researcher could not verify the result further, because the belief was that uploaded screenshots only become visible once the app is approved.
Why this step was taken: a screenshot field should only ever receive an image. Sending something that is not an image is a quick way to see whether the site checks file types at all. The success message suggested that no file type check was applied at the point of upload. The honest limit is stated in the report: because screenshots were expected to appear only after approval, the researcher could not confirm where the file ends up or whether anyone can reach it. So this part is reported as an observation, not as a proven attack.
Root cause
The app page could be reached by other users through its direct URL while the app was still in review. The review did not stop other users from opening the app through its direct URL. The screenshot upload appeared to accept any file type: an executable was accepted and reported as uploaded. The report describes the behaviour but does not analyse the underlying cause.
A useful comparison is a members-only club with a doorman. A real access control check is the doorman asking for your membership card. What happened here is closer to a club where the door is unlocked and the only requirement is knowing the address: anyone told where it is can walk in. The review queue was treated as paperwork, not as the door.
Impact
An authenticated user can distribute an unreviewed application to other Coinbase users by sharing its direct URL, and those users can install it and leave reviews. A user with malicious intent can use this to trick others into installing a malicious app that has never passed review. Separately, an executable can be stored through the screenshot upload, although the report does not confirm where or whether it becomes reachable, since the researcher expected screenshots to appear only after approval.
The core of the impact is trust. Users reasonably assume that anything they can install from Coinbase has been checked. Here the check could be skipped entirely, and the link could be sent by email, chat or a forum post, looking exactly like a normal app link.
Fix
The report does not state what was changed. The changes it implies are: enforce the review state on the app page so that an app in review cannot be opened or installed by anyone other than its owner, and restrict the screenshot upload to expected image types, rejecting executables.
In everyday terms: put the doorman back on the door, and check that what people hand in at the desk really is a photograph.
Variants to test
These are generalisations of the two findings, useful when looking at other sites with similar features.
- Request an object in a pending or draft state directly by ID, as another user. A positive result is a full page or API response for the object instead of a not-found or forbidden response. An API is the behind-the-scenes channel a website uses to fetch data; if the page hides something but the API still returns it, the data is exposed.
- Perform state-changing actions on an unreviewed object, such as installing it or posting a review. A positive result is a successful action recorded against an object that has not been approved.
- Upload non-image files to any upload field tied to a review workflow. A positive result is a success message for an executable or other unexpected type.
- Compare the owner's view and another user's view of the same pending object. A positive result is that the second user sees the same content as the owner.
Hunting notes
This kind of bug hides in workflows that separate submission from publication: app galleries, plugin and extension stores, marketplace listings, and anything with a draft or pending state. During recon, look for features where a user submits content for approval and receives a link to it, then check whether that link works for a second account before approval. Recon here means the exploratory phase of testing, where you map out what a site offers before trying anything specific. The signal is a predictable object ID in the URL and a page that renders for accounts that should not see it yet. The report notes that other users could access, install and review the unreviewed app. which turns a workflow gap into a distribution channel for a malicious app. The upload finding was reported with the limit that visibility after approval could not be confirmed.
Glossary
- Access control: the rules that decide who may see or do what on a website.
- Account: a personal space on a website, protected by login details.
- API: the behind-the-scenes channel a website uses to send and receive data, separate from the pages you see.
- App gallery: a catalogue of applications that users can browse and install.
- Application (app): a program built by a developer that connects to a service such as Coinbase.
- Authenticated: having proved you own an account, usually by logging in.
- Bounty: a payment a company makes to a researcher who reports a valid security problem.
- Design principle: a rule for building systems safely, such as not relying on secrecy of a link for protection.
- Executable: a file a computer can run as a program.
- File type validation: checking that an uploaded file is of an allowed kind, such as an image.
- ID: a unique string of letters and numbers that identifies one stored object.
- Install (an app): granting an app access to your account so it can work on your behalf.
- OAuth: a standard that lets an app get limited access to your account without your password.
- Pending review: submitted and waiting for a human check before publication.
- Recon: the exploratory phase of security testing, mapping what a site offers.
- Review: a human check of submitted content before it is published.
- Root cause: the underlying reason a problem exists, as opposed to its visible symptom.
- Screenshot: a picture showing what an app looks like, uploaded as part of a submission.
- URL: the address of a page on the web.
- Vulnerability class: the category a security problem is filed under, such as violation of secure design principles.
- Workflow: the sequence of steps a feature takes a user through, such as submit, review, publish.