Bugcrowd ยท Hardcoded Secrets ยท Supply Chain
One XML file held the keys to everything
strings.xml is the first place attackers look. This one contained an entire mobile infrastructure.
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
- Codemagic CI/CD API key โ full access to the internal build pipeline (project: "Cerberus").
- CodePush production deployment keys โ the ability to push malicious OTA updates directly to users, bypassing App Store / Play Store review.
- Auth0 credentials โ
AUTH0_CLIENT_IDandAUTH0_DOMAIN, exposing the identity layer. - Encryption passphrase โ
CRYPTO_PASSPHRASEhardcoded in plain text. - Filestack API key + signature โ read/write cloud storage access with a signature valid until the year 2100.
- Intercom API keys, analytics keys for Amplitude, Datadog, Statsig and Stream, Shake client credentials, and internal API endpoints (
ACCOUNT_ENDPOINT,GRAPHQL_ENDPOINT,MESH_URI).
Exploitation steps
- Decompiled the Linktree Android APK and located
res/values/strings.xmlwith the hardcoded production secrets. - Extracted the Codemagic key and authenticated against the Codemagic REST API:
curl -H "x-auth-token: [CODEMAGIC_API_TOKEN]" https://api.codemagic.io/apps. - 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, andmac_mini_m2build instances with direct App Store / Play Store publishing hooks. - Identified the CodePush production deployment keys for both Android and iOS in the same file.
- Extracted the Auth0 credentials, internal API endpoints and encryption passphrase โ a complete attack-surface map of the backend.
- 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
- Rotate everything โ revoke and reissue all exposed credentials (Codemagic, CodePush, Auth0, Filestack, Intercom and the rest).
- Remove hardcoded secrets โ use the Android Keystore system or fetch keys dynamically from a secure backend.
- Mask secrets in CI/CD โ build logs must never print sensitive environment variables.
- Short-lived signatures โ replace the 84-year Filestack signature with short-lived, backend-generated tokens.
- 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.