medium · M5 · MASVS-NETWORK-1 · PTKD-NET-ATS-MEDIA
App Transport Security disabled for media
NSAllowsArbitraryLoadsForMedia permits cleartext/weak-TLS media loads (AVFoundation).
How it is exploited
The media exception (NSAllowsArbitraryLoadsForMedia) lets AVFoundation streams travel over plaintext. An on-path attacker can substitute or record the media content.
Why it matters
Streamed content can be tampered with or monitored; DRM and privacy expectations around media break.
How to fix it
- Serve media over HTTPS and remove the exception.
- If a CDN blocks this, scope an NSExceptionDomains entry to that CDN host instead of the global media opt-out.
Does your app have this?
PTKD checks your build or your source project for PTKD-NET-ATS-MEDIA 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