Skip to content
Leaked secrets Write-up Beginner

CI/CD Takeover & Supply Chain Risk! $$ Bounty

The Linktree Android app contained hardcoded production secrets in its strings.xml file, including a Codemagic CI/CD API key and CodePush deployment keys. An attacker with the APK could authenticate to the CI/CD service and potentially push malicious over-the-air updates to users.

adityasunny06 Follow

Published on adityasunny06.medium.com

Author: Aditya Sunny | Follow on LinkedIn: @adityasunny06

Aditya Sunny, on adityasunny06.medium.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, production secrets were hardcoded in the Android app's strings.xml resource file instead of being kept server-side or injected securely at build time.

Impact

An attacker could potentially take over the CI/CD pipeline and push malicious over-the-air updates to all Linktree users, bypassing app store review, and could also access cloud storage and authentication systems.

What the attacker needed

Ability to download and decompile the APK

The fix

The secrets should be rotated and removed from the app, replaced with secure storage or dynamic fetching from a backend.

How it was found

  1. Decompile the Linktree Android APK and locate res/values/strings.xml.
  2. Extract the Codemagic CI/CD API key and authenticate against the Codemagic REST API.
  3. Observe the API response showing project access, including project name, private repository path, user rights, and build environment details.
  4. Identify CodePush production deployment keys for Android and iOS in the same file.
  5. Extract Auth0 credentials, internal API endpoints, and an encryption passphrase.
  6. Verify Filestack persistent access using the hardcoded signature that expires in 2100.

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.

When an app is built, some settings are stored in a file inside the app package. If secret passwords or keys are placed there, anyone who downloads the app can extract them. Here, the keys allowed access to the company's build system and the system that sends updates to phones, which could let an attacker send harmful updates.

What is Leaked secrets?

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

More by adityasunny06

View all

1 more disclosed report, best first.

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.