Skip to content
Account takeover Write-up Advanced

How I Reverse-Engineered one of the biggest GSM Operator’s application.

The mobile app used a client-side generated SHA-1 signature for passwordless login via a security image, and the signature was built from a static secret plus predictable values. An attacker who reverse-engineered the app could forge the signature and log into any user's account without a password.

isayeter.medium.com

Published on isayeter.medium.com

İsa YETER

İsa YETER, on isayeter.medium.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 the app relied on a client-side generated signature that used a hardcoded secret and predictable inputs, allowing attackers to forge valid login requests.

Impact

An attacker could log into any user's account without a password, potentially forwarding calls, reading messages, and fetching invoices.

What the attacker needed

Jailbroken iOS device; ability to intercept network traffic; reverse engineering tools

The fix

The company confirmed that they have fixed the bug.

How it was found

  1. Sniff the app's network traffic using a proxy like Charles.
  2. Analyse the login request and notice it contains only phone number, image ID, and a signature.
  3. Decrypt the iOS app by jailbreaking the device and using tools like bfdecrypt.
  4. Dump class headers with class-dump to find the signature method.
  5. Disassemble the executable with IDA to see the static string and SHA-1 logic.
  6. Use Cycript to hook the method and log the parameters to learn the full signature formula.

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 had a quick login feature where you tap a picture instead of typing a password. The app itself created a special code to prove the login was genuine, but because the code was made on the phone using a fixed secret, anyone who took the app apart could recreate the code and log in as anyone else.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.