Skip to content
Leaked secrets Write-up Intermediate

Saying Goodbye to my Favorite 5 Minute P1

A HockeyApp Developer API token was hardcoded inside an iOS app binary, and because the token had broad privileges, an attacker could list internal apps, read employee contact details and commit messages, download beta builds, and upload a malicious update that notified all testers. The author demonstrated that with upload rights an attacker could distribute malware under the trusted internal app identity.

Allyson O'Malley Follow

Published on allysonomalley.com

In this post, I’m going to reveal the fastest, easiest P1 that I’ve ever reported – multiple times! It’s the sort of oversight that seems so simple to avoid, but surprisingly, it was pervasive across apps both with and without bug bounty programs.

Allyson O'Malley (@ally_o_malley), on allysonomalley.com

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 a privileged HockeyApp Developer API token was embedded in the app binary instead of being kept secret, and the token was not restricted to the minimum necessary permissions.

Impact

An attacker with such a token could read internal app lists, employee names and emails, commit messages and feedback, download every beta build, and could upload a malicious update that notified and even forced all testers to install it; the demo notes that on iOS an enterprise certificate and user trust step would still be needed.

What the attacker needed

A leaked HockeyApp Developer API token; The token has read or upload privileges; For iOS install, an enterprise certificate and user trust

The fix

Microsoft updated the HockeyApp documentation to warn users to keep API tokens secret, and the author recommends never embedding such tokens in apps and restricting their permissions.

How it was found

  1. Inspect the app binary and notice random strings set as constants on launch.
  2. Trace those strings to functions referencing the HockeyApp token header.
  3. Send an API request with the found string as the token and receive app metadata.
  4. Use the returned software-package URL to download the current and previous beta builds.
  5. Query further endpoints to list apps, users, versions and feedback.
  6. With upload rights, upload a modified build and notify all testers.

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.

Apps sometimes contain secret passwords called API tokens that let them talk to a service. If an app ships with that secret inside it, anyone who downloads the app can pull the secret out and use it as if they were the developer. Here the secret let the finder read private company data and even push a fake app update to staff.

What is Leaked secrets?

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

More from Microsoft

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.