Skip to content
Access control Write-up Intermediate

Complete Lock Screen Bypass on Google Pixel devices

A lock screen bypass on Google Pixel phones occurs when an attacker with physical access resets the SIM PIN using a PUK code, causing the device to unlock. This allows full access to the device without the user's PIN, password, or pattern.

feed.bugs.xdavidhu.me

Published on feed.bugs.xdavidhu.me

Screen on all Pixel phones (tested with Pixel 6 & 5) will unlock after a SIM PIN is reset using a PUK code.

David Schütz, on feed.bugs.xdavidhu.me

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 system incorrectly dismisses the keyguard (lock screen) after a SIM PUK unlock, as indicated by the fix commit title.

Impact

An attacker with physical access can completely bypass the lock screen on seemingly all Pixel phones, gaining full access to the device.

What the attacker needed

Physical access to the device; a SIM card with a PIN code set up; knowledge of the SIM's PUK code

The fix

The issue was fixed in the November 5, 2022 Security Update by preventing the keyguard from being dismissed after a SIM PUK unlock.

How it was found

  1. Lock the device
  2. Remove the SIM tray and insert a SIM card which has a PIN code set up
  3. Enter the SIM code incorrectly 3 times to disable the SIM card and make it require a PUK code
  4. Enter the valid PUK code for the SIM card and follow the instructions to set a new PIN code
  5. See that the device is now unlocked

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.

A lock screen is the first barrier on a phone, asking for a PIN or pattern. This bug lets someone bypass that barrier by messing with the SIM card's PIN using a special code from the mobile network operator. If they have the phone in hand, they can get in without knowing your unlock code.

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.

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.