PISA Pakistan — Community CERT

← 🚩 CTF: Getting Started

46. Mobile Money App Security: Analyzing easypaisa & JazzCash for CTF

⏱ 8 min

Mobile Money App Security: Analyzing easypaisa & JazzCash for CTF

Why Target Mobile Money Apps?

Mobile money platforms such as easypaisa (Jazz) and JazzCash are prime targets for CTF flags hidden in APK binaries, insecure API calls, or misconfigured backend endpoints. These apps also mirror the real‑world scams reported on OLX, Daraz, and via WhatsApp forwards where attackers ask victims to share OTPs.

Static Analysis: Decompiling APKs with MobSF & JADX

  1. Pull the APK from the device or a test build (ensure you have permission for the CTF challenge).
  2. Run MobSF python3 mobsf.py and upload the APK; it generates a static report with permissions, certificates, and hardcoded strings.
  3. Open the decompiled Java in JADX and search for strings like flag, secret, token.
  4. Look for API base URLs in the Smali code (e.g., https://api.easypaisa.com.pk) – often a clue for the next flag.

Dynamic Analysis: Hooking with Frida & Intercepting Traffic via Burp

  • Frida frida -U -f com.easypaisa.app -l hook.js lets you bypass SSL pinning and dump runtime parameters.
  • Configure Burp Suite proxy on the phone; add the Burp CA certificate to the device trusted store.
  • Use objection android sslpinning disable to quickly unpin the app.

Exploiting Insecure API Endpoints

  • Use Burp Intruder to brute‑force the OTP endpoint POST /api/v1/verifyOTP.
  • If the backend returns a JSON blob with a flag field, you've captured the prize.
  • Remember to respect the CTF scope; never attempt these techniques against real users.

Real‑World Pakistan Scams & Reporting

Fraudsters often clone the UI of easypaisa/JazzCash to harvest credentials. The SBP consumer guidelines advise users to verify the sender’s number. If you discover a vulnerable endpoint, report it to the app vendor and the NCCIA 1799 hotline for responsible disclosure.

Do / Don't

  • Do test on devices you own or on sanctioned CTF platforms.
  • Don't attempt to intercept traffic on public Wi‑Fi without consent.
← PrevNext →