low · M5 · MASVS-NETWORK-1 · PTKD-DYN-INSECURE-COOKIE
Session cookie without Secure/HttpOnly
A cookie was set without the Secure (or HttpOnly) attribute, exposing it to cleartext transmission or script access.
How it is exploited
A session cookie was set without Secure and/or HttpOnly. Without Secure it can travel over plaintext; without HttpOnly any script in that web context (XSS, injected page) reads it.
Why it matters
Session hijacking via network capture or script access to the cookie.
How to fix it
- Set Secure; HttpOnly; SameSite on session cookies at the server.
- This is a backend fix; redeploy and re-run the scan to confirm it clears.
Does your app have this?
PTKD checks your build or your source project for PTKD-DYN-INSECURE-COOKIE 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
- 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
- App Transport Security disabled for media