Skip to content
Leaked secrets Disclosed report Beginner

Disclosure of all uploads to Cloudinary via hardcoded api secret in Android app

The Android app contained a hardcoded Cloudinary API key and secret, which an attacker could extract and use to access, replace, delete, and change settings of all uploaded files, as well as view usage statistics.

bagipro Follow

Originally disclosed on HackerOne

  • Triaged in 2 hours
  • Fixed in 4 days
  • Paid in 4 days
  • Disclosed after 4 months

Hi, in file com/reverb/app/CloudinaryFacade.java you have hardcoded the following config:

Java
private static final java.lang.String CONFIG = "cloudinary://434762629765715:█████@reverb";

where 434762629765715:████████ is basic auth details.

It shouldn't be disclosed to third parties as official docs say (https://github.com/cloudinary/cloudinary_android):

Note: You should only include the cloud_name in the value, the api secret and key should be left out of the application.

I was able to access your account data

2018-05-14_20-48-00.jpg
2018-05-14_20-48-00.jpg From the original on HackerOne
2018-05-14_20-48-42.jpg
2018-05-14_20-48-42.jpg

Those keys give me ability to not only access the files, but also replace and delete them, change different their settings. Also this url https://api.cloudinary.com/v1_1/reverb/usage discloses statistics regarding stored files

JSON
"requests":1894689201,
"resources":36029794,
"derived_resources":256178843

Impact

Disclosure of all uploads to Cloudinary via hardcoded api secret in Android app

The original report as published on HackerOne, by bagipro. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

What the attacker needed

Access to the app's source code or decompiled package

The fix

The hardcoded API secret should be removed from the app, and only the cloud name should be included, as per Cloudinary's documentation.

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.

The app had a secret password (API secret) written directly into its code. Anyone who downloaded the app could find this secret and use it to control the service that stores all uploaded files, letting them view, change, or delete those files.

What is Leaked secrets?

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.

More by bagipro

View all

13 more disclosed reports, best first.

More from Reverb.com

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.