Bypassing Apple’s iOS 10 Restrictions Settings – Twice
The iOS Restrictions feature, which limits web access to approved domains, could be bypassed by appending .pdf to any URL or by crafting a URL with a whitelisted domain as a subdomain of an attacker-controlled domain. An attacker could thereby access restricted websites on a device with Restrictions enabled.
jonbottarini.com
Published on jonbottarini.com
By default, Apple has a feature that allows all of their iOS devices to be assigned restrictions, so that employees and mostly children cannot access naughty websites and other types of less-desirable content. You can enable these settings by visiting Settings > General > Restrictions on your iPhone or iPad.
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 URL filter only checked the beginning of the URL against the whitelist and did not verify the full domain or file extension.
Impact
An attacker with physical access to a restricted device could bypass website restrictions to access blocked content; the second bypass remained unfixed at the time of writing.
What the attacker needed
Physical access to a restricted iOS device; Restrictions enabled with website whitelist
The fix
The URL filter should validate the entire domain and not rely on prefix matching or file extensions.
How it was found
- Enable Restrictions and set website access to allowed websites only.
- Open Safari and navigate to a restricted URL with .pdf appended.
- Observe that the page loads despite the domain not being whitelisted.
- Alternatively, craft a URL with a whitelisted domain as a subdomain of an attacker domain.
- Navigate to that crafted URL and observe it is allowed.
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.
iOS Restrictions let a parent or employer block most websites on an iPhone or iPad. The author found that adding '.pdf' to the end of a web address, or putting an approved domain name in front of a different domain, tricked the phone into allowing the site. This means someone could still reach blocked content.
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.