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.
Published on adityasunny06.medium.com
Author: Aditya Sunny | Follow on LinkedIn: @adityasunny06
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
- Decompile the Linktree Android APK and locate res/values/strings.xml.
- Extract the Codemagic CI/CD API key and authenticate against the Codemagic REST API.
- Observe the API response showing project access, including project name, private repository path, user rights, and build environment details.
- Identify CodePush production deployment keys for Android and iOS in the same file.
- Extract Auth0 credentials, internal API endpoints, and an encryption passphrase.
- 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.