low · M5 · MASVS-NETWORK-1 · PTKD-NET-ATS-WEB
App Transport Security disabled in web content
NSAllowsArbitraryLoadsInWebContent lets WebViews load arbitrary cleartext content.
How it is exploited
NSAllowsArbitraryLoadsInWebContent lets any page inside your WebViews load over HTTP. Injected script in that plaintext page runs inside your app's web context.
Why it matters
In-app web content becomes attacker-controllable on hostile networks, enabling credential phishing with your app's chrome around it.
How to fix it
- Serve all in-app web content over HTTPS and drop the exception.
- Validate and pin the origins your WebViews are allowed to load.
Does your app have this?
PTKD checks your build or your source project for PTKD-NET-ATS-WEB and every other check in this knowledge base.
Scan your appReferences
Related checks (M5)
- First-party HTTPS API without HSTS
- Cleartext HTTP traffic at runtime
- Session cookie without Secure/HttpOnly
- TLS interception succeeded (no certificate pinning)
- Weak TLS version negotiated at runtime
- Capacitor WebView allows cleartext or mixed content
- App Transport Security disabled (NSAllowsArbitraryLoads)
- App Transport Security insecure exception domains