Update copy and mobile view#24
Merged
Merged
Conversation
mustela
approved these changes
Nov 18, 2025
yahyafakhroji
added a commit
that referenced
this pull request
Jul 5, 2026
Fixes 31 of 32 confirmed findings from the adversarially-verified ultracode audit of the auth-ui rebuild; #16 is partially fixed with a documented residual. All changes typecheck clean and pass the mirrored cypress component specs. See docs/AUDIT-FINDINGS.md for the full per-finding detail and status. Highlights by subsystem: - session/device: device-authorization grants no longer auto-complete from the forgeable GET /signed-in; they route to the CSRF-protected /device/authorize consent screen (explicit Approve showing app + scope). (#10) - rate-limit: limiters mount on '*' and self-guard on a normalized (lowercased, .data-stripped) path, closing the case-variant and single-fetch bypasses. (#1, #11) - verify: email-code resend is gated on server-verified session ownership and never 500s / enumerates; requestId validated + encoded into the /authorize hand-back. (#9, #25, #30) - signup: registration policy (allowRegister/allowPassword/passkeysType) enforced in the actions; duplicate-email responses emit a Set-Cookie (presence oracle closed, content/size residual documented — #16); fingerprintId used instead of the MaxMind token; requestId resumed on email-link complete. (#3, #4, #14, #16, #17) - sso: guarded getSession/startIdpIntent (graceful branded errors, not 500s); LDAP reauth cookie cleared; ProviderError on sign-in mapped to the branded page; deviceTrackingToken threaded on auto-link. (#2, #5, #6, #13, #19, #20, #21) - providers/mappers: U2F factor derived from the webAuthN proto factor (fixes the U2F login loop); failedAttempts extracted with the proper schema; forceMfaLocalOnly kept distinct from forceMfa. (#0, #7, #22) - session cookie: dual-format (ISO/epoch) timestamp parsing in the eviction pre-pass so the 2KB budget is respected. (#8) - webauthn: real browsers without WebAuthn see the unsupported message instead of submitting the Cypress fake credential. (#27) - fraud: MaxMind token falls back to the cookie when it lands after the poll budget; default-org cache keyed per service URL. (#28, #29) - audit logging: raw loginName replaced with hashActor across OTP/webauthn/password reset events. (#23, #24, #26) - setup: safeParse on tampered skip params; TOTP register guarded. (#12, #31) Verification (2026-07-04): the 12 findings applied in the prior batch were independently re-verified (verifier + adversary per finding). 9 closed cleanly; #10 (device-auth) was incomplete and #30 (resend test) was a regression — both re-fixed here; #16 (signup enumeration) is partial, with the residual documented and full closure (sessions-cookie encryption) deferred by owner decision. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017UhyUkaSmoNFax5wu2aHfi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.