(Insecure Dangerous Component) Developer Backdoor `DebugActivity` included in the Production Game…
A debug activity intended for developers was left in the production Android game build. An attacker with a rooted or special emulator could launch this unexported activity via ADB and use its functions to gain unlimited in-game rewards.
Published on medium.com
A common development practice is to add “back door” code specifically designed for debugging or testing purposes that is not intended to be shipped or deployed with the product. These back door entry points create security risks because they are not considered during design or testing and fall outside of the expected…
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 the debug activity was not removed from the production build, and although it was not exported, it could still be launched on emulators that grant extra ADB permissions.
Impact
An attacker could use the debug activity to control game functions and obtain unlimited daily spinner rewards, affecting the game's economy and fairness.
What the attacker needed
Android emulator with special ADB permissions; ADB access to the emulator; The production game APK
The fix
The debug activity should be removed from the production application.
How it was found
- Download and install the game APK in a MEMU Play emulator.
- Decompile the APK using Jadx.
- Open AndroidManifest.xml and find the DebugActivity entry.
- Use ADB to start the DebugActivity.
- Access the activity and trigger its functions.
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.
Android apps can contain hidden screens called activities that are meant only for developers. This game shipped one such screen in the public version. Normally other apps cannot open it, but on a special emulator an attacker can force it open and use it to cheat, for example by giving themselves unlimited rewards.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.