Runtime manipulation iOS app breaking the PIN
The iOS app's PIN screen could be bypassed by invoking an internal method directly using a runtime manipulation tool. An attacker with physical access to an unlocked device could bypass the PIN and access the app's authenticated features.
Originally disclosed on HackerOne
- Disclosed after 15 months
I was able to bypass your pin protection by doing runtime manipulation in iOS app
1.Installed the snoop it in device 2.By going snoop it tool settings choose the coinbase app 3.I already set the the pin in coinbase app 4.Open the coinbase app it is asking for PIN 5.Now browsing the snoopit controlled window from the browser 6.Go to the Objective C-Classes in snoop it window 7.By directly invoking the userAutheticated method from the coinbase.CBPINViewController I was able to break the PIN protection 8. userAuthenticated method is not taking any arguments just invoking this method bypassed the scree
Please see the POC video https://www.dropbox.com/s/acvr4g7lv63tti5/runtime%20manipulation%20coinbase.mov?dl=0
You can prevent run time manipulation by do not attaching a debugger to app process you see here how to prevent
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 app relied on a client-side method to mark the user as authenticated without server-side verification or tamper detection.
Impact
An attacker with physical access to an unlocked device could bypass the PIN and access the app's authenticated features.
What the attacker needed
Physical access to an unlocked device; runtime manipulation tool installed; PIN already set in the app
The fix
The reporter suggests preventing runtime manipulation by not attaching a debugger to the app process.
How it was found
- Install the runtime manipulation tool on the device.
- In the tool's settings, select the target app.
- Ensure a PIN is already set in the app.
- Open the app and observe the PIN prompt.
- In the tool's window, browse the Objective-C classes.
- Invoke the userAuthenticated method of the PIN view controller to bypass the PIN screen.
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.
The app used a PIN screen to protect access, but the check was done only in the app's code. A tool that can run code inside the app allowed the attacker to call the 'success' function directly, skipping the PIN. This means anyone who can run such a tool on the device can get past the PIN.
What is Mobile?
Flaws specific to Android and iOS apps: exported components, deep links, WebViews and data left on the device.