Skip to content
Access control Write-up Intermediate

Creative Android pin bypass with Race conditon

An Android app protected by a mobile PIN could briefly display internal screens such as settings and notifications when the main activity was launched repeatedly in quick succession. An attacker with physical access to the unlocked device could capture screenshots of sensitive content like account amounts and profile details without knowing the PIN.

Baluz Follow

Published on medium.com

Android

baluz, on 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 PIN check was enforced only on the main activity rather than on each internal activity, so launching internal activities directly let them render before the lock screen took over.

Impact

The attacker cannot fully bypass the PIN, but could briefly view and screenshot sensitive content such as amounts and profile information.

What the attacker needed

Physical access to the unlocked device; app installed with a PIN set; ability to run adb commands

How it was found

  1. Repeatedly launch the app's main activity with a deep link pointing at an internal screen.
  2. Immediately take a screenshot of the device screen.
  3. Repeat this loop many times to capture the briefly shown internal pages.

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.

Many phone apps ask for a short PIN before showing anything. This report says that if you open the app's main screen over and over very fast, other screens inside the app flash up for a moment before the PIN check catches up. Someone holding the phone could take screenshots during those moments and read private information without ever typing the PIN.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Baluz

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.