medium · M3 · MASVS-AUTH-1 · PTKD-API-UNAUTH-MUTATION
State-changing request succeeded without authentication
A first-party POST/PUT/PATCH/DELETE returned a 2xx with no Authorization or session cookie present, suggesting the endpoint may not enforce authentication (a broken-access-control smell worth an authorized active test).
How it is exploited
A first-party state-changing request (POST/PUT/PATCH/DELETE) returned success with no Authorization header or session cookie present. If the endpoint does not enforce authentication, anyone can invoke it directly; this is a strong lead for a broken-access-control test.
Why it matters
Unauthenticated data modification or deletion, and often broken object-level authorization (IDOR) on the same endpoints.
How to fix it
- Require authentication and authorization on every state-changing endpoint.
- Verify the caller owns the object being modified (object-level access control), and run an authorized active test against these endpoints.
Does your app have this?
PTKD checks your build or your source project for PTKD-API-UNAUTH-MUTATION and every other check in this knowledge base.
Scan your appReferences
Related checks (M3)
- Permissive CORS with credentials
- Weak JWT observed on the wire
- Biometric authentication not bound to a cryptographic key
- Premium access is stored on the phone and trusted (heuristic)
- Firebase rules trust an email address nobody verified
- Firebase security rules open to everyone
- Users can make themselves admin or premium in Firestore
- Supabase auth settings in the local config (check the hosted project)