Skip to content

Lesson 14 of 14 · 14m

The Auth Bugs That Actually Got Exploited

Okta's HAR files, Microsoft's key-scope confusion, Golden SAML, and stuffing bots — identity material leaks outside the boundary, every time.

The pattern under the incidents

Read the post-mortems in sequence and the same failure keeps reappearing: not broken cryptography, but identity material leaking outside the boundary it was designed for — and verifiers that trusted attacker-controlled metadata. Five incidents, one shape.

Okta support system, October 2023. BeyondTrust's team uploaded a HAR file to a support case while troubleshooting; HAR captures include request headers, and these contained live session cookies. Attackers inside Okta's case-management system replayed them. BeyondTrust detected the anomalous admin session on October 2; Okta confirmed compromise October 19; Cloudflare and 1Password reported the same replay pattern within days. The auth boundary held — the artifact around it didn't. Session tokens are bearer secrets in every form they take, including a troubleshooting export.

Storm-0558, July 2023. Microsoft disclosed that a threat actor acquired a signing key intended for consumer MSA accounts and forged tokens that enterprise Azure AD/OWA accepted — key-scope confusion. The signature math verified perfectly. What failed was scope: verifiers trusted a key that signed for one universe and accepted it in another. iss/aud/key-pinning aren't bureaucracy; they're the only thing between "valid signature" and "valid identity."

Golden SAML / SUNBURST, December 2020. The ADFS token-signing certificate walked out with the SolarWinds compromise, and the actor minted assertions for anyone. Identity forgery without touching a victim's password, MFA, or endpoint. IdP signing keys are root-CA-class material.

Credential stuffing, ongoing. Collection #1 (January 2019) put ~21 million passwords into every stuffing botnet's wordlist — and stuffing is a volume attack: even a 0.1% hit rate across a million tries is a thousand accounts. The defense isn't stronger hashing of live traffic — it's breach-screening at set-time, rate limits, and MFA. The stuffing bots are why password still appears in wordlists a decade after rockyou.txt.

JWT verifier trust, 2015–present. alg-confusion, none, kid injection, jku SSRF — CVE-2015-9235 through CVE-2022-23529 — one class repeated: the verifier read the token's own metadata as verification instructions. The claims were lies; the signature was fine.

The wrong mental model

"The auth boundary is the login page." It's wherever identity material exists — HAR files, support tooling, refresh-token stores, signing-key scope, the metadata a verifier trusts, the cloud account syncing your passkeys. Every incident above attacked the material in a place nobody had classified as auth infrastructure.

The detection layer

Each incident also produced a specific, loggable signal — this is the part that compounds. Okta's breach was detected by the customer: BeyondTrust saw an admin session sourced from an unexpected context. Session records carrying ip/user_agent and a device/ASN jump check exist for exactly this. Storm-0558's forgery was invisible to signature validation but would have lit up any aud/key-scope audit. Refresh-token reuse detection exists because replay is the theft signal. The pattern: auth systems that only gate at verify-time miss everything that happens after — the perimeter is a log source.

Concretely, the events worth alerting on: refresh-token replay, aud/iss/kid mismatches, session IDs presented after destruction, admin sessions from new ASN+device combinations, and service_role-grade calls from sources that should never hold it. None of these are exotic — they're arithmetic on data your auth stack already produces; they just have to be read. A cron that never runs is the same as a feature that doesn't exist.

What to actually do

Sanitize credential-bearing artifacts (HAR exports strip Cookie/Authorization, sessions expire on exposure). Pin iss/aud/alg/kid/jku server-side — the token proposes nothing. Scope signing keys to their universe. Rotate session IDs at privilege transitions; reuse-detect refresh tokens; kill families on replay. Breach-screen passwords; prefer passkeys where you can. And log mismatched aud/unknown kid/replayed refresh — those events are the exploit arriving, early enough to matter.

Keep reading

Related articles from the SudoSecurity blog.