Bugcrowd ยท Hardcoded Secrets ยท Supply Chain

One XML file held the keys to everything

Platform: Bugcrowd (Linktree)Class: Hardcoded Secrets / Supply ChainStatus: Accepted & RewardedReward: $$$$
Mobile app build pipeline with exposed keys

strings.xml is the first place attackers look. This one contained an entire mobile infrastructure.

TL;DR โ€” Decompiling Linktree's Android application, I found res/values/strings.xml packed with hardcoded production secrets: a Codemagic CI/CD API key (verified live โ€” project "Cerberus", with ["delete"] rights), CodePush production deployment keys for Android and iOS that could push OTA updates straight to users, Auth0 credentials, a plaintext encryption passphrase, and a Filestack signature valid until 2100. Bugcrowd first closed the report as Not Applicable โ€” I pushed back with proof of impact, and it was accepted and rewarded.

Background

What if a single XML file buried inside a popular app contained the keys to compromise millions of users? During a security audit of the Linktree Android application, I decompiled the APK and examined res/values/strings.xml. What I found was not one leaked key but dozens of hardcoded production secrets spanning nearly every critical service the company uses.

The vulnerability โ€” what was in the file

Exploitation steps

  1. Decompiled the Linktree Android APK and located res/values/strings.xml with the hardcoded production secrets.
  2. Extracted the Codemagic key and authenticated against the Codemagic REST API: curl -H "x-auth-token: [CODEMAGIC_API_TOKEN]" https://api.codemagic.io/apps.
  3. The API response revealed full project access: project name Cerberus, the private GitHub repository path blistco/cerberus, user rights ["delete"] (administrative privileges confirmed), internal developer emails, and mac_mini_m2 build instances with direct App Store / Play Store publishing hooks.
  4. Identified the CodePush production deployment keys for both Android and iOS in the same file.
  5. Extracted the Auth0 credentials, internal API endpoints and encryption passphrase โ€” a complete attack-surface map of the backend.
  6. Verified the Filestack access: a hardcoded signature expiring in 2100 โ€” a near-permanent window to read, upload or overwrite files in cloud storage.

The kill chain

Decompile APK โ†’ extract strings.xml โ†’ Codemagic API key โ†’ CI/CD pipeline access โ†’ build logs โ†’ more secrets (AWS, Firebase, keystore) โ†’ CodePush keys โ†’ push malicious OTA updates โ†’ millions of users compromised. CodePush keys are the nuclear option: they bypass app-store review entirely, silently and instantly. Add the CI/CD takeover (build machines with store publishing hooks), the exposed Auth0 + passphrase ("Problem Perhaps Guest Old Fire Flavor", as printed in the file) breaking the identity and encryption layers together, and an 84-year Filestack signature that amounts to a permanent backdoor โ€” and one XML file becomes total infrastructure compromise.

The triage battle โ€” from "Not Applicable" to accepted

After submission through Bugcrowd, the initial response was: "After an initial review of your report, we were unable to identify an immediate security impact. As such, this has been marked as Not Applicable." I submitted a detailed Request for Response: demonstrable proof of administrative API access with delete rights, evidence of the supply-chain attack vector via the CodePush keys, a complete enumeration of every exposed service, and a technical argument that the combined impact constitutes a P1/Critical. The result: bug accepted, bounty awarded.

Remediation

  1. Rotate everything โ€” revoke and reissue all exposed credentials (Codemagic, CodePush, Auth0, Filestack, Intercom and the rest).
  2. Remove hardcoded secrets โ€” use the Android Keystore system or fetch keys dynamically from a secure backend.
  3. Mask secrets in CI/CD โ€” build logs must never print sensitive environment variables.
  4. Short-lived signatures โ€” replace the 84-year Filestack signature with short-lived, backend-generated tokens.
  5. Obfuscation and runtime injection โ€” ProGuard/R8 rules and runtime secret delivery.

Lessons

One XML file can expose an entire company's infrastructure โ€” strings.xml is the first place attackers look. And never accept "Not Applicable" without a fight: if the bug is real, prove it with impact. The next big bounty is hiding in plain sight.

Found something similar?

I help teams verify and fix issues like this โ€” and I retest my own reports for free. Reach me at sr558079@gmail.com or read more writeups.