Unpacking the Bypass: Client-Side Premium Authentication Compromise in Truecaller’s Android…
The researcher modified the Truecaller Android APK to hardcode authentication, license, purchase, and integrity checks to always succeed, and to force premium flags to true. This allowed the modified app to unlock premium features without payment or valid credentials, and to evade tamper detection.
Published on cyphernova1337.medium.com
Mobile applications often strive for a seamless user experience, but this can sometimes lead to an over-reliance on client-side logic, opening doors for sophisticated bypasses. This article dissects a critical premium authentication bypass vulnerability I uncovered in the leading Android application, Truecaller…
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 app relied on client-side checks for premium authentication, licensing, and integrity, which can be modified in the APK.
Impact
The modified APK could unlock premium features without payment, and if distributed, could be used to embed malware and steal user data; integrity checks were disabled, allowing the tampered app to run undetected.
What the attacker needed
Ability to decompile and modify APK; installation of modified APK
The fix
The app should move all premium validation, license checks, and authentication decisions to the server, and implement robust APK integrity checks and anti-tampering techniques.
How it was found
- Decompile the Truecaller APK.
- Modify AndroidManifest.xml to set android:debuggable to true.
- Alter smali files to hardcode authentication, license, purchase, and integrity checks to return true or false as needed.
- Set the isPremiumUser flag to true in resources.
- Hide purchase prompts by changing UI visibility.
- Recompile and run the modified APK.
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.
The app decided whether you paid for premium features by checking a flag inside the app itself. The researcher edited the app's code so those checks always said 'yes', letting anyone use premium features for free. This shows why important decisions should be made on the server, not on the user's phone.
What is Mobile?
Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.