Skip to content
Business logic Disclosed report Beginner

PIN bypass

The MEW Android app enforced a PIN attempt rate limit using the device's local clock, so an attacker with physical access could bypass the lockout by changing the device time and continue brute-forcing the PIN. This could allow an attacker to guess the PIN and access the user's wallet.

tushar_rec0n Follow

Originally disclosed on HackerOne

Critical View original
  • Disclosed after 6 days

Summary:

MEW apk has improper rate limit.

When we try to brute force the PIN, we are rate limited for 5 minutes after 5 or 6 attempt.

In my testing I found that it was checking the device's local time so by changing it we can brute force the PIN.

Steps To Reproduce:

1.Install MEW app from play store.

2.Create your PIN.

3.Now open again your MEW apk.

4.You will be asked to enter the PIN.

5.Try to brute force the code. You will see a message to try again after 5 min.

6.Now change the time of your device.

7.Observe there is no rate limit now.

Supporting Material/References:

bandicam_2021-06-23_19-57-14-572.mp4 From the original on HackerOne

Impact

An attacker can brute force the PIN of an user

The original report as published on HackerOne, by tushar_rec0n. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the rate-limit timer was based on the device's local time rather than a trusted server-side clock or monotonic counter.

Impact

An attacker with access to the device could brute-force the PIN.

What the attacker needed

Physical access to the device; MEW app installed with a PIN set

How it was found

  1. Install the MEW app from the Play Store.
  2. Create a PIN.
  3. Reopen the app and reach the PIN entry screen.
  4. Try wrong PINs until the five-minute lockout message appears.
  5. Change the device's time.
  6. Observe that the rate limit is no longer enforced.

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 report has not been written yet. The Original tab links to the source.

A PIN is a short numeric password. The app tried to stop people guessing it by locking them out for five minutes after a few wrong tries, but it decided when to unlock by looking at the phone's own clock. Because the phone's clock can be changed by the person holding it, they could simply move the time forward and keep guessing.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by tushar_rec0n

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.