Session Credential Boundary Check
Record exactly when the server rejects an expired, truncated, reused or tampered credential, then verify the rejection shape matches its promises
Use when: you must characterize the whole credential boundary: expiry, truncation, replay, tampering and rejection behavior
Avoid when: you have only one test credential and only ambient session behavior can be observed, not repeated full sessions
Procedure
- Establish baseline sessions for each identity you own and record issuance, expiry, refresh and grace behavior.
- Send identical requests with the session slightly truncated and then token-tampered, waiting until after each request to restore.
- Repeat each tamper at least twice and once a second time after renewal so burst single-shot reports are not fatal.
- Check response shape for expired versus malformed versus revoked versus throttled, then confirm the server's promise map.
- Inspect whether a 401 response for an expired session is identical to a 403 for a caller with no right to the object.
- Record the boundary in a table: which signal comes from timing, which from shape, and which from explicit permission state.
Signals
- A truncated or malformed token behaves identically to a valid one inside some ttl window.
- Tampering a stateless token changes only a claim, but the server never notices because the signature is skipped.
- Revolving an expired session still flows through caches or resumes without re-checking the account state underneath.
- An expired session response carries additive data such as roles or claims the caller should never keep.
Patterns
1. Baseline
sess expires=3600s rotation=on-refresh
replay same token after renewal -> old-token(valid)=200
2. Token tamper
signed JWT tamper role=member -> revoked-recognition=server-side sweep (verify if claims-only)
3. Result row
boundary: expiry=on truncation=401 tamper=401 replay=401 throttle=429 re-envelope=yes
Pitfalls
- Testing expiration while ignoring renewals, which is where extension grants accidentally outlive their intending event.
- Assuming signature verification because the operation recommends it instead of actually retrying across tampered payloads.
- Ignoring the double-request question and publishing a finding that collapses under burst semantics.
Done when
- Every credential boundary condition is tested at least twice, with a renewal-covered second attempt where one exists.
- The rejection surface is fully characterized, from status and body to whether each signal truly traveled server-side.