high · M5 · MASVS-NETWORK-1 · PTKD-NET-ATS
App Transport Security disabled (NSAllowsArbitraryLoads)
ATS is globally disabled, so the app may load arbitrary cleartext HTTP and weak-TLS endpoints.
How it is exploited
NSAllowsArbitraryLoads=true switches off App Transport Security for the whole app, so any request can silently use HTTP or broken TLS. A network attacker downgrades and intercepts at will.
Why it matters
The iOS app loses its platform-enforced TLS baseline; every connection is only as safe as each call site remembered to be.
How to fix it
- Delete NSAllowsArbitraryLoads from Info.plist.
- If one legacy host truly needs an exception, scope it with NSExceptionDomains for that host only.
- Re-test: ATS failures name the offending host in the device log.
Scoped exception instead of a global opt-out
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>legacy.example.com</key>
<dict><key>NSExceptionAllowsInsecureHTTPLoads</key><true/></dict>
</dict>
</dict>Does your app have this?
PTKD checks your build or your source project for PTKD-NET-ATS 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 insecure exception domains
- App Transport Security disabled for media