Note: I generally never get involved in controversies but I’m observing few people outside India (self-claimed security researchers) trying to spread propaganda against the security of Indian Government Apps. Moreover, the intention behind these activities was not to help the government/people but to scare millions of people and to disturb the peace. This blog will help you to find the answer by yourself – is it really security threat or just a propaganda?
Also, this post is an honest security analysis of talk and not biased on any political agenda. This is a purely technical review.
I respect the security community but its bit worrisome to see some people making false claims about things that they probably do not understand. Being a security analyst myself, I am in a position to validate some of these claims.
How I qualify to make an analysis of talk on a security breach of mAadhaar?
- In the last 2 years, I’ve pentested more than 300+ mobile apps (iOS + Android) of top companies and also won a bounty of (~USD 200,000) in just mobile section.
- I’m the author of the book “Learning iOS Penetration testing” which is dedicated to mobile app security.
- I also lead OWASP iGoat– iOS App focused to learn mobile app security.
- I also gave a talk at DEFCON AppSec Village (Las Vegas) just after mAadhaar security propaganda talk (here is a photo of agenda)
One fine day, I was surfing the internet and surprised to see some news as Aadhar/app got hacked!
Other news was like
Now as a security engineer, I thought there was a breach in Aadhar data or some kind of zero-day!
I checked a couple of tweets from the self-claimed security researcher but frankly, it didn’t make me any sense or there was no such indication of security breach / some kind of zero-day.
On August 11, 2019, I was in Las Vegas for Defcon (and also for AppSec Village). I was damn excited because of two reasons:
- I was about to attend talk “History of the worst Android app ever: mAadhaar” in person and
- I was also going to talk about mobile security just after that talk.
However, after a talk from the self claimed security researcher, I was blank for some time! I had no words as it didn’t make any sense of described vulnerabilities. Vulnerabilities discussed were not even near to some kind of security breach or zero-day or stealing of biometric data.
Here is quick decoding of his talk:
- Root Detection Bypass Using Frida
He was able to bypass root detection in the mAadhaar app using Frida.
Conclusion: If you pentest 100 mobile apps, you will be able to easily bypass root detection in more than 90 apps. Again this is client-side validation and it’s like a cat and mouse game! Tomorrow even if you add new checks, there will be always ways to bypass them as it’s client-side validation.
2. Tampering Detection Bypass Using Frida
He was able to bypass tampering detection using Frida.
Conclusion: Again this is a client-side validation and in most of the apps, one can bypass it easily. No app is bulletproof for client-side attacks! There are always ways to bypass them, it’s just matter of some time.
3. Debug Flag Detection Bypass Using Frida
He was able to bypass the debug flag detection using Frida.
Conclusion: So? Again here is a client-side validation bypass! Where is the security breach?
4. App Version Check Bypass Using Frida
He showed bypassing app version check using Frida
Conclusion: At this point, I was a little confused! Is it Frida tutorials or some security breach?
5. User Password
He showed the app is asking to use 4 digit password.
Conclusion: Ok! This could be one of the missing security best practices for password policy? but the impact? Definitely not a security breach!
6. Local Database Password
He showed how it’s possible to crack the local database password.
So he was able to get user preferences by decrypting the local database. I thought he is initially showing some low hanging fruits and then something like zero-day / security breach is coming up! I was still excited!
7. Debug Features Enabling Using Frida
He again showed Frida to enable debug features in-app!
Conclusion: Dude, I know frida is awesome but I didn’t fly to Vegas to see these Frida tutorials. I was still looking forward to the security breach!
8. MITM (Lack of SSL Cert Validation)
He was able to intercept app traffic as CVE-2019-14516.
Conclusion: The CVSS score is around 5.8 (Medium) severity.
Let’s list out all the vulnerabilities mentioned in the so-called mAadhaar security breach:
- Root Detection Bypass (using Frida) – Low Severity
- Tampering Detection Bypass (using Frida) – Low Severity
- Debug Flag Detection (using Frida) – Low Severity
- App Version Check Bypass (using Frida) – Low Severity
- User Password (Password best practices) – Low Severity
- Local Database Password (user preferences) – Low Severity
- Debug Features Enabling (using Frida) – Low Severity
- MITM (Lack of SSL Cert Validation) – Medium Severity / difficult to exploit
So now talk was over! At this moment, I didn’t understand if I should laugh/shout/scream? Because all of the above vulnerabilities are low/difficult to exploit.
Final Conclusion: This is not any kind of security breach or Zero-day or stealing of biometric data from mAadhaar! These are just low hanging fruits can be observed in most of modern mobile apps!
Bug Bounty: If you don’t know what is bug bounty, it’s a process in which people report security issues in apps, and companies pay them money (bounty) based on criticality/impact of the vulnerability.
Do you want to know how much a company would pay even if we report all of the above issues? It would be USD 0 or max USD 100 (for encouragement). That’s all!
Do you want to verify yourself? Check out this Fitbit’s security program (https://bugcrowd.com/fitbit)
There are similar rules for almost all mobile apps while reporting security issues!
Meanwhile, I leave up to you on how serious these security issues are or it’s just a publicity stunt?
I can see new propaganda against the security of the Arogya Setu app by the same self-claimed researcher. I’ll soon write an analysis of it.
On the other note, yes I agree, the Government should have proper channels to receive security issues found on the governement apps!
Note: Defcon AppSec Village is one of the best security events I ever attended, however, the self-claimed researcher was able to get spots due to all media highlights!
- YouTube video of so-called security breach talk – https://www.youtube.com/watch?v=1dnyV2Gd48A
- Slides of the so-called hack – https://github.com/fs0c131y/ConPresentations/blob/master/AppSecVillageDefcon27.mAadhaar.pdf
- News Photo 1 – https://www.indiatimes.com/technology/news/an-online-researcher-hacked-into-aadhaar-s-official-android-app-to-show-how-poorly-it-s-secured-337425.html
- News Photo 2 – https://www.firstpost.com/tech/news-analysis/uidai-aadhaar-software-hacked-using-a-patch-which-disabled-critical-security-report-5159521.html
- Bugcrowd program – https://bugcrowd.com/fitbit