What Is In The Strings Xml
The author describes how hardcoded secrets such as API keys, cloud keys and default credentials can end up inside an Android app's strings.xml resource file. Anyone who downloads the APK and decompiles it can read those values, which may then be abused depending on what the key grants.
Published on infosecwriteups.com
In the Android, application it is a package called apk(android package kit), it is similar to a zip-like format to extract the data from apk, we use apktooland JADX-GUI.
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 secrets were hardcoded into the app's string resources instead of being kept server-side or fetched at runtime.
What the attacker needed
Ability to download the APK; a decompiler such as JADX
How it was found
- Download the APK of the app you want to test.
- Open the APK in JADX and wait for it to decompile.
- Navigate to Resources, then resources.arsc, res, values, strings.xml.
- Look through the file for keys, passwords or credentials.
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.
An Android app is shipped as an APK file, which is basically a zip archive holding the app's code and resources. One resource file, strings.xml, stores text the app uses, and developers sometimes put secret values like passwords or API keys there by mistake. Because the APK can be downloaded and unpacked by anyone, those secrets are effectively public.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.