Skip to content
Leaked secrets Write-up Beginner

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.

Barath Stalin Follow

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.

Barath Stalin, on infosecwriteups.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 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

  1. Download the APK of the app you want to test.
  2. Open the APK in JADX and wait for it to decompile.
  3. Navigate to Resources, then resources.arsc, res, values, strings.xml.
  4. 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.

More by Barath Stalin

View all

2 more disclosed reports, 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.