Skip to main content

OWASP ASVS 5.0 self-assessment

This is a self-assessment of the Idenplane server, admin console and themes against the OWASP Application Security Verification Standard 5.0.0, Level 2. It covers every Level 1 and Level 2 requirement (253), taken from the official release CSV.

  • Version assessed: 0.10.0, November 2026, updated for 0.11.0. Rows changed by 0.11.0 (admin console MFA, stronger recovery codes, SAML request verification, V3.7.2, V7.1.1, V7.3.2, V10.4.1, V10.4.8) are updated and say "FIXED in 0.11.0".
  • Method: each verdict comes from reading the code, not the docs. Evidence is a file and line, a test, or configuration. Requirements about documentation were judged against what the docs actually say.
  • Not a certification. Nobody outside the project has reviewed it. Treat it as a map of where the controls are and where they are missing.
  • Machine-readable copy: asvs-5.0-l2-assessment.csv, one row per requirement with the requirement text, status, evidence, notes and recommendation.
  • Attribution: the requirement identifiers and text are from the OWASP Application Security Verification Standard 5.0.0, © OWASP Foundation, licensed under CC BY-SA 4.0. The CSV reproduces that text under the same licence.

Status meanings​

StatusMeaning
PassThe code meets the requirement on every relevant path.
PartialSome paths or parts are covered, or the control exists but depends on configuration.
FailThe requirement is not met.
N/AThe requirement does not apply to Idenplane (the reason is given).

Idenplane terminates TLS at a reverse proxy, so transport requirements about the server's own certificate are judged N/A, with a note on what the proxy must do. Idenplane has no GraphQL endpoint (an unused, never-mounted GraphQL module was removed in 0.10.1), so the GraphQL requirements are N/A.

Summary​

ChapterPassPartialFailN/ATotal
V1 Encoding and Sanitization1360827
V2 Validation and Business Logic271111
V3 Web Frontend Security1251119
V4 API and Web Service431210
V5 File Handling42309
V6 Authentication20104135
V7 Session Management891018
V8 Authorization52007
V9 Self-contained Tokens61007
V10 OAuth and OIDC12111529
V11 Cryptography1031014
V12 Secure Communication23139
V13 Configuration490013
V14 Data Protection16209
V15 Secure Coding and Architecture652013
V16 Security Logging and Error Handling861116
V17 WebRTC00077
All117881929253

Fixed in 0.11.0​

RequirementFixTest
V6.3.3, V6.3.4Admin console sign-in asks for a second factor (authenticator app, passkey or recovery code) once the admin has one, and a server-wide setting requires one for every admin: on for new installs, off after an upgrade, with an enrolment-only session so nobody is locked out. Admin tokens record amr, acr and auth_time. See Admin console MFA.test/admin-mfa.e2e-spec.ts, src/admin-rbac/admin-access-policy.spec.ts, src/common/guards/admin-authorization.guard.spec.ts
V6.5.2Recovery codes have 120 bits (24 base32 characters) and are stored as SHA-256. Codes issued before 0.11.0 keep working; their unsalted hashes are rewrapped in Argon2id at start-up.src/mfa/mfa.service.spec.ts, src/mfa/recovery-code-rewrap.service.spec.ts
V1.5.1, V6.8.3SAML AuthnRequests: the signature must cover the root element and every field is read from the signed bytes (signature wrapping), and each request ID is accepted once within its validity window (replay).src/saml/saml-request-hardening.spec.ts, test/saml-request-replay.e2e-spec.ts
V6.4.4, V7.5.1Removing or adding an admin's factor, new recovery codes, an admin MFA reset and turning the requirement off need a second factor checked in the last 15 minutes (step-up), and every such change is an admin event, recorded even when admin events are off.test/admin-mfa.e2e-spec.ts

Fixed in 0.10.0​

The assessment found these gaps and 0.10.0 closes them, with tests:

RequirementFixTest
V6.3.1, V2.4.1Brute-force protection is on for new realms, with a temporary, progressive lockout. See secure defaults.test/secure-realm-defaults.e2e-spec.ts, src/realms/realm-security-defaults.spec.ts
V6.3.1The password grant checked an LDAP user's password before the lockout, so a locked account answered differently for the right password. The lockout is now checked first on every path, and failed LDAP binds count.auth.service.spec.ts "a locked account"
V16.3.1Login and admin events are recorded for new realms.realms.service.spec.ts
V16.3.3Every temporary lockout is logged, not only permanent ones.—
V9.2.2, V10.3.1userinfo, introspection and the session-events WebSocket accepted any JWT the realm signed, including ID tokens, logout tokens and (in master) admin tokens. They now accept only access tokens.tokens.service.spec.ts, session-events.gateway.spec.ts
V7.4.3A password reset ends every SSO and OAuth session of the user and revokes the refresh tokens.test/theme-views.e2e-spec.ts
V6.3.4, V7.4.2A user disabled after approving a device, or after signing in but before the code exchange, no longer gets tokens.auth.service.spec.ts "refuses tokens to a user disabled…"
V1.2.1The lockout email put the raw username and realm name into HTML.brute-force.service.spec.ts "escapes the username"
V5.2.3A compressed SAMLRequest was inflated without a limit before the size check (decompression bomb).saml-idp.service.spec.ts "decompression bomb"
V15.3.2Back-channel logout and audit-stream deliveries followed redirects.backchannel-logout.service.spec.ts, audit-streams.service.spec.ts
V13.4.5, V16.5.1The public /health/ready returned the database driver's error text.prisma-health.indicator.spec.ts
V6.1.1, V7.1.1The brute-force and session docs described Keycloak settings that do not exist.—
V11.1.2A cryptographic inventory now exists, in the threat model.—

Fixed in 0.11.0​

RequirementFixTest
V10.4.1Redirect URIs and post-logout redirect URIs are matched exactly (RFC 9700), except the port of a loopback IP URI (RFC 8252). Fragments are refused. A /* wildcard needs the per-client, insecure allowInsecureWildcardRedirectUris, which the upgrade sets only on clients that already had one, and which /admin/upgrade/health reports.redirect-uri.utils.spec.ts, redirect-uri.property.spec.ts, test/redirect-uri-exact.e2e-spec.ts
V7.3.2, V10.4.8An offline session lives for offlineTokenLifespan; it was deleted, with its offline tokens, after refreshTokenLifespan. The session's absolute expiry is checked at every refresh and introspection, and a refresh token never outlives its session.session-lifetime.spec.ts, sessions-cleanup.service.spec.ts, test/offline-sessions.e2e-spec.ts

Remaining gaps​

These are left open on purpose. Most would change behaviour that existing deployments rely on, or need a design of their own, and half a fix would be worse than a documented gap. A few are small but touch admin-only input (theme uploads, custom CSS) and were left for a focused change. In rough priority order:

  1. No common, breached or context-word password checks (V6.2.4, V6.2.11, V6.2.12).
  2. Geo-IP lookups send end-user IPs over plain HTTP to ip-api.com (V12.3.1, V14.2.3) when adaptive authentication or continuous verification is on. Needs an HTTPS provider or a local database, and an explicit opt-in.
  3. Session idle timeout (V7.3.1). Since 0.12.0 a realm can set an idle timeout for SSO sessions and normal refresh tokens (ssoSessionIdleTimeout), but it is off by default, and offline sessions have none: they live for offlineTokenLifespan from sign-in.
  4. RP-initiated logout without id_token_hint ends the session with no confirmation (V10.6.2).
  5. WebSocket upgrade has no Origin check (V4.4.2).
  6. Theme asset uploads trust the declared MIME type (V5.2.2) and store SVG unsanitized (V1.3.4).
  7. RSA 2048 signing keys (V11.2.3). New keys should be 3072-bit; that changes JWKS consumers' expectations only slightly. The rotation story exists now (a realm publishes every key until it is retired, and tokens are verified by kid: POST /admin/realms/{realm}/keys/rotate), so a key size change would reach existing realms through a rotation.
  8. Users cannot list or end their own sessions, or revoke consents (V7.5.2, V10.7.3).
  9. Documentation-only gaps: input validation rules (V2.1.x), file handling (V5.1.1), data classification (V14.1.x), log inventory (V16.1.1), SBOM (V15.1.2).

Every row below has its own recommendation.

Requirements​

V1 Encoding and Sanitization​

ReqLStatusEvidenceNotes and recommendation
V1.1.12Passsrc/saml/saml-idp.service.ts (decodeSamlRequest: one base64 decode, then inflate)Input is decoded once, before validation.
V1.1.22PassHandlebars auto-escaping (src/theme/theme-handlebars.ts); src/brute-force/brute-force.service.ts sendLockoutNotification uses escapeHtmlOutput is encoded at render time. The one hand-built email body is now escaped.
V1.2.11Passsrc/common/utils/html-escape.util.ts; src/brute-force/brute-force.service.ts (escapeHtml on username and realm name); src/brute-force/brute-force.service.spec.tsFIXED in 0.10.0: the lockout email interpolated the raw username (SCIM/LDAP/IdP usernames have no character rules).
V1.2.21Partialsrc/common/redirect-uri.utils.ts:7; src/clients/dto/create-client.dto.ts (redirectUris @IsString only); themes href="{{termsOfServiceUrl}}"Admin-entered URLs have no scheme allowlist, so javascript: is accepted. Only admins can set them. Recommendation: Accept only http(s) for redirectUris, branding and terms URLs (S).
V1.2.31Partialthemes/idenplane/login/templates/login.hbs:73-82; themes/idenplane/account/templates/account.hbs:186Request values reach JS string literals with HTML escaping only; a backslash is not escaped. Recommendation: Add a JSON-safe Handlebars helper, or move the values to data- attributes (S).
V1.2.41PassPrisma throughout; $executeRawUnsafe only with constant lock keys (src/admin-auth/admin-seed.service.ts:89, src/secrets-at-rest/secrets-at-rest.service.ts:333)No user input reaches raw SQL.
V1.2.51Passsrc/upgrade/database-backup.service.ts:85,156 (execFileSync with an argument array, no shell)
V1.2.62Passsrc/user-federation/ldap.client.ts:163,190 (escapeLdap)The base filter is admin configuration.
V1.2.72Passsrc/saml/saml-idp.service.ts (XPath reference id is generated internally)
V1.2.82N/ANo LaTeX processing.
V1.2.92PassNo user input reaches new RegExp; src/scim/filter-parser.redos.spec.tssrc/authorization/policy-engine.ts:270 compiles admin-written patterns without a ReDoS guard (admin input). Recommendation: Bound or pre-validate admin policy patterns (S).
V1.3.11N/ANo WYSIWYG or user HTML input.
V1.3.21PassNo eval, new Function or vm in src/ or admin-ui/src
V1.3.32Partialsrc/main.ts ValidationPipe whitelist+forbidNonWhitelisted; src/scim/scim.controller.ts:158 (@Body() typed as an interface)Interface-typed and scalar bodies skip class-validator. Recommendation: DTO classes for SCIM bodies and the test-email body (M).
V1.3.42Partialsrc/theme/theme-upload.service.ts:36 accepts image/svg+xml; src/main.ts serves uploads with a sandbox CSP and nosniffServed SVG is inert, but it is stored unsanitized. Recommendation: Sanitize SVG on upload or refuse it (S/M).
V1.3.52Partialsrc/theme/theme-render.service.ts:24 sanitizeCss (blocklist)Admin-supplied custom CSS is filtered by blocklist; the CSP limits exfiltration. Recommendation: Allowlist CSS parser (M).
V1.3.62Partialsrc/common/security/safe-http-client.ts (DNS pinning + IP blocklist) for webhooks and SMS webhook; DNS-pinned postBackchannelLogout in src/tokens/backchannel-logout.service.ts (next release after 0.13.0); raw fetch in src/events/audit-streams.service.ts, src/broker/broker.service.tsAdmin- or client-configured URLs on the raw-fetch paths can reach internal addresses. Back-channel logout refuses link-local and cloud-metadata addresses (opt-in BACKCHANNEL_LOGOUT_ALLOW_LINK_LOCAL) but intentionally reaches private ones; 0.13.1 also pins DNS, with no redirects. Recommendation: Route those fetches through safe-http-client (M).
V1.3.72Passsrc/theme/theme-handlebars.ts:4 (isolated env); src/theme/theme-render.service.ts:56 (withoutReservedLocals)Templates load only from theme files.
V1.3.82N/ANo JNDI (Node.js).
V1.3.92N/ANo memcache.
V1.3.102N/ANo user-controlled format strings.
V1.3.112Passsrc/email/providers/smtp.provider.ts:34 (nodemailer with separate fields)
V1.4.12N/AMemory-safe runtime.
V1.4.22N/AManaged runtime; numbers are DTO-validated.
V1.4.32N/AGarbage-collected runtime.
V1.5.11Passsrc/saml/saml-request-verifier.ts (parseStrictXml: no DTD, entities, comments, processing instructions or duplicate IDs; every xmldom warning is fatal); src/saml/saml-request-hardening.spec.tsFIXED in 0.11.0: the AuthnRequest signature check now requires one signature on the root, referencing the root, and reads every field from the signed bytes (signature wrapping).
V1.5.22PassJSON.parse only; src/theme/theme-render.service.ts:47 strips __proto__

V2 Validation and Business Logic​

ReqLStatusEvidenceNotes and recommendation
V2.1.11Partialsrc/main.ts ValidationPipe; DTO decorators in src/**/dtoRules exist only as decorators; there is no validation-rules document. Recommendation: Document the input rules (S).
V2.1.22Fail—No document on how combined fields must agree. Recommendation: Document cross-field rules: redirect_uri/client, OTP/flow binding, realm scoping (S).
V2.1.32Partialdocs/docs/security/secure-defaults.md; docs/docs/configuration/options.md (brute-force section)Brute-force limits are now documented correctly; global and per-user limits elsewhere are not. Recommendation: Document the remaining business limits (S).
V2.2.11Partialsrc/main.ts ValidationPipe; Record<string,string> bodies in src/account/account.controller.ts:273, src/device/device.controller.ts:183Untyped form bodies get no validation. Recommendation: DTO classes for account and device forms (M).
V2.2.21Passsrc/main.ts ValidationPipe; src/password-policy/password-policy.service.ts:18Validation is server-side.
V2.2.32Partialsrc/sms/sms-otp.service.ts:54 (HMAC binding); src/broker/broker.service.ts:244Done for auth artifacts, not as a general rule. Recommendation: See V2.1.2 (M).
V2.3.11Passsrc/mfa/mfa.service.ts:565-631; src/login/primary-auth-gates.service.tsFlow steps are tied to one-time pending-action tokens.
V2.3.22Partialsrc/sms/sms-otp.service.ts:14-22; src/auth-flow/email-otp.service.ts:13-26Limits exist in code; per-realm rate limits are opt-in (rateLimitEnabled). Recommendation: See the recommended defaults in secure-defaults.md.
V2.3.32Partialsrc/registration/registration.service.ts:130-175; src/login/login.controller.ts (reset)Registration and password reset write several rows outside one transaction. Recommendation: Wrap in prisma.$transaction (S).
V2.3.42N/ANo limited-quantity resources.
V2.4.12Partialsrc/app.module.ts:97 (global throttler); src/rate-limit/rate-limit.service.ts:52 (realm limits off by default); brute-force on by default (src/realms/realm-security-defaults.ts)Lockout is now on by default; per-realm rate limits remain opt-in. Recommendation: Enable per-realm rate limits by default after NAT-safe limits are chosen.

V3 Web Frontend Security​

ReqLStatusEvidenceNotes and recommendation
V3.2.11Passsrc/main.ts helmet (nosniff, CSP); uploads served with sandbox CSP
V3.2.21Passadmin-ui React, no dangerouslySetInnerHTML; preview iframe sandbox="allow-scripts" without allow-same-origin
V3.3.11Partialsrc/login/session-issuer.service.ts:84 (secure:true); src/admin-auth/admin-auth.controller.ts:101,131 (secure only in production)No __Secure-/__Host- prefixes. Recommendation: Secure always; __Secure- prefix with a legacy alias (M).
V3.3.22Passsrc/login/session-issuer.service.ts:89 (SSO Lax); CSRF and admin cookies Strict
V3.3.32FailCookie names IDENPLANE_SESSION, XSRF-TOKEN-{realm}, admin_rt with Path=/realms/{realm}Path scoping rules out __Host-. Recommendation: __Host-IDENPLANE_SESSION-{realm} with Path=/ (M).
V3.3.42Partialsrc/admin-auth/admin-auth.controller.ts:99,107,170admin_rt is HttpOnly but holds the same token returned in the JSON body. Recommendation: A refresh-only token in the cookie (M).
V3.4.11Passsrc/main.ts:251-254 (HSTS max-age 1y, includeSubDomains, preload)
V3.4.21Passsrc/main.ts:140-170 (origin allowlist); src/clients/dto/create-client.dto.ts:48 (no wildcard)http://localhost:PORT stays allowed in production.
V3.4.32Partialhelmet defaults; src/theme/theme-render.service.ts:132 (nonce CSP, base-uri self)object-src none; base-uri is self, not none. Recommendation: base-uri none for themed pages (S).
V3.4.42Passhelmet nosniff (src/main.ts)
V3.4.52Passhelmet Referrer-Policy no-referrer
V3.4.62Passhelmet frame-ancestors self; themes none (src/theme/theme-render.service.ts:133)
V3.5.11Passsrc/common/csrf/csrf.service.ts (double submit); admin API needs Authorization or x-admin-api-key
V3.5.21PassAdmin API requires non-safelisted headers
V3.5.31Partialsrc/account/account.controller.ts:210 (GET logout)A cross-site GET can log a user out of the account console. Recommendation: POST with CSRF (S).
V3.5.42Partialsrc/app.module.ts:116 (admin console served on the same origin as realm pages)No origin separation between admin and end-user UI. Recommendation: Optional separate admin hostname (L).
V3.5.52N/ANo postMessage listeners.
V3.7.12PassReact SPA, no plugins
V3.7.22Passsrc/tokens/tokens.service.ts (validatePostLogoutRedirectUri); src/common/redirect-uri.utils.tsRedirects only to registered URIs, matched exactly since 0.11.0 (see V10.4.1).

V4 API and Web Service​

ReqLStatusEvidenceNotes and recommendation
V4.1.11Partialsrc/account/account.controller.ts:968 (application/json without charset)
V4.1.22Passsrc/main.ts:247 (no HTTP-to-HTTPS redirect in the app)
V4.1.32Passsrc/common/utils/proxy-ip.util.ts:132 (TRUSTED_PROXIES)TRUSTED_PROXIES=* trusts everyone (operator choice).
V4.2.12PassNode llhttp rejects ambiguous TE/CL
V4.3.12N/ANo GraphQL endpoint: the unmounted GraphQL module and its packages were removed after 0.10.0Idenplane has no GraphQL API. Recommendation: If one is added: depth and cost limits, introspection off.
V4.3.22N/Aas V4.3.1Idenplane has no GraphQL API. Recommendation: Keep introspection off in production if one is added.
V4.4.11Partialsrc/main.ts (gateway on the plain HTTP server)WSS relies on the TLS-terminating proxy. Recommendation: Refuse upgrades without x-forwarded-proto=https in production (S).
V4.4.22Failsrc/realtime/session-events.gateway.ts:101-131No Origin check on the WebSocket upgrade. Recommendation: Check Origin against the CORS allowlist (S).
V4.4.32Partialsrc/realtime/session-events.gateway.ts:182 (?token= in URL)Access token in the URL can reach logs (redacted by redact-url). Recommendation: Send the token in the first message (M).
V4.4.42Passsrc/realtime/session-events.gateway.ts:178-230 (signature, typ Bearer, cert binding, blacklist, session)

V5 File Handling​

ReqLStatusEvidenceNotes and recommendation
V5.1.12Fail—Upload types and sizes are not documented. Recommendation: Document theme-asset uploads and realm import limits (S).
V5.2.11Pass100 kB JSON body limit, 10 MB on the admin import endpoints (src/common/http/body-parsers.ts); src/theme/theme-upload.service.ts:39 (5 MB)The 5 MB check trusts the declared size.
V5.2.21Failsrc/theme/theme-upload.service.ts:107,135The client-declared MIME type is trusted; no magic-byte check. Recommendation: Sniff magic bytes and check the decoded length (S).
V5.2.32Passsrc/saml/saml-idp.service.ts decodeSamlRequest (maxOutputLength); src/saml/saml-idp.service.spec.ts "refuses a compressed request that inflates past the size limit"FIXED in 0.10.0: inflation was unbounded before the size check.
V5.3.11Passsrc/main.ts:312 (static serving, sandbox CSP)
V5.3.21Passsrc/theme/theme-upload.service.ts:118-128 (generated file names)
V5.4.12Partialsrc/account/account.controller.ts:970 (export filename embeds the username)Recommendation: Generated or sanitized filename (S).
V5.4.22Partialsrc/account/account.controller.ts:970No RFC 6266 encoding. Recommendation: Use filename* (S).
V5.4.32Fail—No malware scan of uploaded assets (image-only types and sandbox CSP reduce the risk). Recommendation: Optional scanning hook (M).

V6 Authentication​

ReqLStatusEvidenceNotes and recommendation
V6.1.11Passdocs/docs/security/secure-defaults.md; src/realms/realm-security-defaults.tsFIXED in 0.10.0: documented lockout settings, defaults and the lockout-DoS trade-off (the old docs used Keycloak field names).
V6.1.22Failsrc/password-policy/password-policy.service.tsNo list of context-specific words. Recommendation: See V6.2.11.
V6.1.32Partialdocs/docs/guides/authentication.mdx; docs/docs/security/admin-mfa.mdPathways are listed, not their strength; device approval is missing. The admin console pathways (password, second factor, API key) are documented with their strength since 0.11.0. Recommendation: Pathway matrix (S).
V6.2.11Partialprisma/schema.prisma (passwordMinLength default 8); src/realms/dto/create-realm.dto.ts (@Min(1))Default is 8, but an admin can set a lower minimum. Recommendation: Floor at 8 (S; would reject saving realms already configured lower).
V6.2.21Passsrc/account/account.controller.ts:268; src/login/login.controller.ts:789
V6.2.31Passsrc/account/account.controller.ts:283-321Current password required.
V6.2.41Failsrc/password-policy/password-policy.service.ts:18-44No common-password check. Recommendation: Bundle a top-3000/10k list (S).
V6.2.51Partialsrc/password-policy/password-policy.service.ts:27-41Composition rules are off by default but available. Recommendation: Deprecate composition rules (S).
V6.2.61Passthemes/*/login/templates (type=password)
V6.2.71Passthemes (no onpaste blocking, no autocomplete=off on passwords)
V6.2.81Passsrc/crypto/crypto.service.ts:164-189Verified as received.
V6.2.92Passsrc/crypto/crypto.service.ts:38 (MAX_PASSWORD_LENGTH 1024)
V6.2.102Partialsrc/password-policy/password-policy.service.ts:98-104 (passwordMaxAgeDays, default 0)Periodic rotation is optional and off by default. Recommendation: Warn against it in the console (S).
V6.2.112Failsrc/password-policy/password-policy.service.ts:18No context-word check (username, realm, email). Recommendation: Reject passwords containing them (S).
V6.2.122Failsrc/password-policy/password-policy.service.ts:18No breached-password check. Recommendation: Optional k-anonymity breach check per realm (M).
V6.3.11Passsrc/realms/realm-security-defaults.ts; src/brute-force/brute-force.service.ts; test/secure-realm-defaults.e2e-spec.ts; test/brute-force.e2e-spec.tsFIXED in 0.10.0: lockout is on for new realms; realms created before 0.10.0 keep their setting and are reported by /admin/upgrade/health.
V6.3.21Passsrc/admin-auth/admin-seed.service.ts:14-30 (random initial password; weak ones refused in production)
V6.3.32Passsrc/admin-auth/admin-auth.service.ts (login, completeMfaLogin); src/admin-rbac/admin-access-policy.ts (decideAdminMfa); src/admin-auth/admin-seed.service.ts (required on new installs); test/admin-mfa.e2e-spec.tsFIXED in 0.11.0: admin console sign-in asks for a second factor once the admin has one, and the server-wide requirement (on for new installs) confines an admin without one to enrolment. After an upgrade it is off until turned on; /admin/upgrade/health warns. End-user realms set mfaRequired per realm.
V6.3.42Passsrc/device/device.controller.ts; src/auth/auth.service.ts (device and code grants refuse disabled users); src/admin-auth/admin-auth.service.ts; docs/docs/security/admin-mfa.mdDisabled users can no longer finish the device flow or exchange a code (0.10.0). FIXED in 0.11.0: admin sign-in enforces the admin's second factor on every pathway that issues a user token (password step, step-up, enrolment); the API key pathway is documented as break-glass.
V6.4.11Partialsrc/users/dto/set-password.dto.ts:15 (temporary ignored)Initial passwords never expire or force a change. Recommendation: mustChangePassword flag (M).
V6.4.21PassNo secret questions or hints
V6.4.32Passsrc/login/login.controller.ts (reset sets the password, then normal login with MFA)
V6.4.42Partialsrc/mfa/mfa.service.ts (admin factor reset); src/admin-mfa/admin-mfa.service.ts (reset); docs/docs/security/admin-mfa.mdSince 0.11.0 an admin MFA reset needs the resetting admin's own recent MFA check (or the API key), is always recorded as an admin event, and the console asks to confirm who is asking. There is still no documented identity-proofing procedure for end users. Recommendation: Document one (S).
V6.5.12Passsrc/mfa/mfa.service.ts:265-300; src/magic-link/magic-link.service.ts:472; src/sms/sms-otp.service.ts:631; test/totp-replay.e2e-spec.tsSingle use.
V6.5.22Passsrc/mfa/recovery-codes.ts; src/mfa/mfa.service.ts (generateRecoveryCodes, verifyRecoveryCode); src/mfa/recovery-code-rewrap.service.tsFIXED in 0.11.0: codes have 120 bits and are stored as SHA-256 (allowed at 112 bits or more). Codes issued before 0.11.0 keep working; their hashes are rewrapped in Argon2id (salted) at start-up.
V6.5.32Passcrypto.randomInt / randomBytes in src/sms/sms-otp.service.ts:179, src/auth-flow/email-otp.service.ts:191
V6.5.42Passsrc/mfa/mfa.service.ts:325; src/sms/sms-otp.service.ts:48At least 20 bits.
V6.5.52Partialsrc/sms/sms-otp.service.ts:51 (max 900 s); src/realms/dto/create-realm.dto.ts (magicLinkExpirySeconds no @Max)Out-of-band lifetime can exceed 10 minutes. Recommendation: Cap at 600 s (S).
V6.6.12Partialsrc/sms/sms-otp.service.ts:196-226No SMS risk notice to users. Recommendation: Add a notice to the SMS setup page (S).
V6.6.22Passsrc/sms/sms-otp.service.ts:25-54; src/auth-flow/email-otp.service.ts:66
V6.6.32Passsrc/sms/sms-otp.service.ts:14-20,631; src/auth-flow/email-otp.service.ts:13-26
V6.8.12Passprisma/schema.prisma (FederatedIdentity unique per IdP); src/broker/broker.service.ts:555-583
V6.8.22Partialsrc/broker/broker.service.ts:386-420Upstream id_token is not verified; identity comes from userinfo over TLS with the IdP access token. Recommendation: Verify the id_token via the IdP JWKS (M).
V6.8.32N/Asrc/saml (IdP only)Idenplane never consumes SAML assertions. The AuthnRequests it receives are accepted once per ID within their validity window since 0.11.0 (src/saml/saml-idp.service.ts claimRequestId; test/saml-request-replay.e2e-spec.ts).
V6.8.42Partialsrc/broker/broker.service.ts:375Upstream acr/amr are ignored. Recommendation: Map upstream amr; document the fallback (M).

V7 Session Management​

ReqLStatusEvidenceNotes and recommendation
V7.1.12Partialdocs/docs/security/secure-defaults.md (session lifetimes); docs/docs/configuration/options.md; prisma/schema.prisma (accessTokenLifespan, refreshTokenLifespan, offlineTokenLifespan)FIXED in part: the real settings are documented, including the offline session lifetime (0.11.0) and the SSO idle timeout (0.12.0, off by default).
V7.1.22Passdocs/docs/guides/authentication.mdx; src/login/login.service.ts:157-182maxSessionsPerUser documented and enforced.
V7.1.32Partialdocs/docs/api/oauth.md (backchannel logout)
V7.2.11Passsrc/login/login.service.ts:187-215Session token looked up by hash server-side.
V7.2.21Partialsrc/common/guards/admin-api-key.guard.ts:150-200The static ADMIN_API_KEY gives super-admin access. Recommendation: Make the API key bootstrap-only in production (M).
V7.2.31Passsrc/crypto/crypto.service.ts:191; src/login/login.service.ts:140256-bit session tokens, stored hashed.
V7.2.41Partialsrc/login/login.service.ts:129-138; src/step-up/step-up.service.ts:165New token at login; step-up keeps the same token. Recommendation: Rotate after step-up (S).
V7.3.12Partialsrc/sessions/session-lifetime.ts; prisma/schema.prisma (Realm.ssoSessionIdleTimeout, LoginSession.lastActivityAt); test/sso-idle-timeout.e2e-spec.tsFIXED in part (0.12.0): a realm idle timeout ends unused SSO sessions and caps normal refresh tokens. It is off by default so upgrades sign no one out; offline sessions and admin console tokens (1 hour) have no idle timeout. Recommendation: turn it on wherever refreshTokenLifespan is raised.
V7.3.22Passsrc/sessions/session-lifetime.ts; src/auth/auth.service.ts (handleRefreshTokenGrant); src/tokens/tokens.service.ts (introspectRefreshToken); src/login/login.service.ts (SSO expiresAt); src/admin-auth/admin-auth.controller.ts (admin token: 1 h, refresh returns the same token); test/offline-sessions.e2e-spec.tsFIXED in 0.11.0: the absolute session expiry is checked at refresh and introspection, not left to the hourly clean-up, and offline sessions get their own expiry (offlineTokenLifespan) instead of being deleted after refreshTokenLifespan.
V7.4.11Passsrc/tokens/tokens.service.ts:427-475Logout deletes sessions; later sid checks fail.
V7.4.21Passsrc/users/users.service.ts; src/auth/auth.service.ts (code and device grants check enabled); src/tokens/tokens.service.ts:525FIXED gap: the code exchange did not check enabled.
V7.4.32Passsrc/sessions/sessions.service.ts revokeAllUserSessions; test/theme-views.e2e-spec.ts, test/offline-sessions.e2e-spec.tsFIXED: every credential change ends the user's sessions, offline ones included: a password reset by email, a password set by an admin, an admin removing second factors, and an admin MFA reset (console tokens too). A password change in the account console ends every other session and keeps the current one (0.12.0).
V7.4.42Passthemes/idenplane/account/templates/account.hbs:11; admin-ui Layout.tsx
V7.4.52Partialsrc/sessions/sessions.controller.ts:58-83No realm-wide termination. Admin termination sends back-channel logout tokens (FIXED in 0.13.0). Recommendation: (S)
V7.5.12Partialsrc/account/account.controller.ts:283-322,688-702; src/webauthn/webauthn.controller.ts:78-118,341-354; src/admin-mfa/admin-mfa.controller.tsAdmin console (0.11.0): changing a factor or the recovery codes needs a second factor checked in the last 15 minutes. End-user account console: TOTP enrolment and passkey add/delete still need only the session. Recommendation: Require re-authentication there too (S).
V7.5.22Failsrc/account/account.controller.tsUsers cannot list or end their own sessions. Recommendation: Account session list (M).
V7.6.12Partialsrc/tokens/backchannel-logout.service.ts; src/sessions/sessions.service.ts; src/sessions/sessions-cleanup.service.ts; src/oauth/oauth.controller.ts:208-231FIXED in part in 0.13.0: admin, account-console and credential-change terminations and the SSO idle timeout notify RPs by back-channel logout. A session reaching its maximum lifetime is not announced (documented). Recommendation: (S)
V7.6.22Passsrc/oauth/oauth.controller.ts:174-231; src/login/session-issuer.service.ts:50-97

V8 Authorization​

ReqLStatusEvidenceNotes and recommendation
V8.1.11Passdocs/docs/getting-started/admin-roles.mdx
V8.1.22Partialdocs/docs/getting-started/admin-roles.mdx:105No field-level rules documented. Recommendation: (S)
V8.2.11Passsrc/common/guards/admin-authorization.guard.ts:72-138; src/admin-rbac/admin-route-policy.ts; admin-route-policy.fitness.spec.tsFails closed.
V8.2.21Passsrc/users/users.service.ts:226; src/sessions/sessions.service.ts; test/admin-rbac.e2e-spec.tsRealm-scoped lookups.
V8.2.32Partialsrc/main.ts ValidationPipe; src/users/users.service.ts:22-33Not role-aware for reads. Recommendation: (M)
V8.3.11Passsrc/common/guards/admin-authorization.guard.ts:113-136; src/admin-rbac/admin-principal.service.ts:57-70Roles read from the DB per request.
V8.4.12Passsrc/admin-rbac/admin-access-policy.ts:91-153Tenants (realms) isolated; master never in a realm-admin scope.

V9 Self-contained Tokens​

ReqLStatusEvidenceNotes and recommendation
V9.1.11Passsrc/crypto/jwk.service.ts:94-99
V9.1.21Passsrc/crypto/jwk.service.ts:56-61 (key imported for RS256 only)No explicit algorithm allowlist; the key type pins it. Recommendation: Pass algorithms:[RS256] (S).
V9.1.31Passsrc/crypto/jwk.service.ts:94-99jku/x5u/jwk headers ignored.
V9.2.11Passsrc/crypto/jwk.service.ts:97 (jose checks exp/nbf)
V9.2.22Passsrc/tokens/access-token-type.ts; src/tokens/tokens.service.ts (userinfo, introspect); src/realtime/session-events.gateway.ts; tokens.service.spec.ts "refuses an ID token"FIXED in 0.10.0: ID, logout and admin tokens signed with the realm key were accepted as access tokens.
V9.2.32Partialsrc/crypto/jwk.service.ts:94-99No issuer or audience check at verification. Recommendation: Pass issuer/audience to verifyJwt; aud on admin tokens (S/M).
V9.2.42Passsrc/auth/auth.service.ts (aud=clientId); src/tokens/backchannel-logout.service.ts

V10 OAuth and OIDC​

ReqLStatusEvidenceNotes and recommendation
V10.1.12Partialadmin-ui/src/context/AuthContext.tsx:5Admin access token lives in browser memory (refresh in an HttpOnly cookie). Recommendation: BFF for the console (L).
V10.1.22Partialsrc/broker/broker.service.ts:147-169,226-247Legacy broker state is not bound to the browser; no PKCE upstream. Recommendation: Bind state to a cookie; PKCE S256 upstream (M).
V10.2.12Partialsrc/broker/broker.service.ts:183-188Login CSRF possible on the legacy broker callback. Recommendation: As V10.1.2.
V10.2.22Passsrc/broker/broker.service.ts:181,243Per-IdP callback URL.
V10.3.12Partialsrc/tokens/access-token-type.ts; src/tokens/tokens.service.tsFIXED in part: token type now checked; audience is not. Recommendation: See V9.2.3.
V10.3.22Passsrc/tokens/tokens.service.ts:518-533
V10.3.32Passsrc/tokens/tokens.service.ts:518sub is a per-realm UUID.
V10.3.42N/ANo resource endpoint requires a particular acr.
V10.4.11Passsrc/common/redirect-uri.utils.ts (matchesRedirectUri); src/common/redirect-uri.utils.spec.ts; src/common/redirect-uri.property.spec.ts; test/redirect-uri-exact.e2e-spec.tsFIXED in 0.11.0: exact string comparison, loopback port excepted (RFC 8252); fragments refused; wildcards refused at registration. Clients that had /* entries before the upgrade keep them through the per-client allowInsecureWildcardRedirectUris opt-in, reported by /admin/upgrade/health (wildcard_redirect_uris) until an admin turns it off.
V10.4.21Passsrc/auth/auth.service.ts (atomic single use, replay revokes the session); test/oidc-conformance.e2e-spec.ts
V10.4.31Passsrc/oauth/oauth.service.ts:133 (60 s)
V10.4.41Partialsrc/clients/dto/create-client.dto.ts:157-160No implicit flow; the password grant can still be enabled per client. Recommendation: Allowlist grantTypes; gate password (S).
V10.4.51Passsrc/auth/auth.service.ts:820-940; test/refresh-rotation.e2e-spec.tsRotation with reuse detection.
V10.4.62Partialsrc/oauth/oauth.service.ts:71-86S256 only; required for public clients only. Recommendation: Realm flag to require PKCE for every client (S).
V10.4.72N/ANo dynamic client registration.
V10.4.82Passsrc/sessions/session-lifetime.ts (refreshTokenExpiresAt); src/auth/auth.service.ts (handleRefreshTokenGrant checks session.expiresAt); test/offline-sessions.e2e-spec.tsFIXED in 0.11.0: a rotated refresh token never outlives its session, and the session's absolute expiry (refreshTokenLifespan, or offlineTokenLifespan for an offline session) is checked at every refresh.
V10.4.92Passsrc/users/users.controller.ts:240; src/sessions/sessions.controller.ts
V10.4.102Passsrc/client-auth/client-authenticator.ts:425
V10.4.112Partialsrc/scopes/scopes.service.ts:53-80A client with no scopes assigned can request any supported scope. Recommendation: Grant assigned scopes only (S).
V10.5.12N/Asrc/broker/broker.service.ts:382-414The broker does not consume the id_token.
V10.5.22Passsrc/broker/broker.service.ts:299-305
V10.5.32N/Asrc/broker/providers.tsNo metadata discovery.
V10.5.42N/Aid_token not consumed.
V10.5.52Partialsrc/tokens/tokens.service.ts:541-585Logout token checks: no typ, nonce or aud check. Recommendation: (S)
V10.6.12Passsrc/oauth/oauth.service.ts:43response_type=code only.
V10.6.22Failsrc/tokens/tokens.controller.ts:244-295GET logout without id_token_hint ends the session with no confirmation. Recommendation: Confirmation page (S/M).
V10.7.12Partialsrc/login/post-auth.service.ts:104Consent only when requireConsent or prompt=consent. Recommendation: Default requireConsent for third-party clients (S).
V10.7.22Partialsrc/login/login.controller.ts:979-995No lifetime or offline-access notice. Recommendation: (S)
V10.7.32Partialsrc/users/users.controller.ts:254-298Only admins can revoke consents. Recommendation: Account consent page (M).

V11 Cryptography​

ReqLStatusEvidenceNotes and recommendation
V11.1.12Partialdocs/docs/security/threat-model.md (key assets); src/crypto/key-ring.tsNo formal key-management policy. Recommendation: Write one (S).
V11.1.22Passdocs/docs/security/threat-model.md "Cryptographic inventory"FIXED in 0.10.0: inventory written.
V11.2.12Passnode:crypto, jose, argon2, @peculiar/x509
V11.2.22Partialsrc/crypto/key-ring.ts:11-24,91-94; src/crypto/jwk.service.tsAES key ring rotates; signing algorithm is fixed to RS256. Recommendation: (M)
V11.2.32Failsrc/crypto/jwk.service.ts:64 (RSA 2048)2048-bit RSA is about 112-bit security. Recommendation: 3072-bit for new keys (S).
V11.3.11Passsrc/crypto/key-ring.ts:29
V11.3.21Passsrc/crypto/key-ring.ts:29-30 (AES-256-GCM)
V11.3.32Passsrc/crypto/key-ring.ts:21-22,129-135
V11.4.11Passsrc/crypto/crypto.service.ts:108,141HMAC-SHA1 only for TOTP compatibility.
V11.4.22Passsrc/crypto/crypto.service.ts:171-175 (argon2id m=64 MiB t=3 p=4)
V11.4.32PassSHA-256 throughout
V11.4.42Partialsrc/crypto/key-ring.ts:40,68-70scrypt N=2^14 with a static default salt. Recommendation: Require a 32-byte random key (S).
V11.5.12Passsrc/oauth/oauth.service.ts:115; src/crypto/crypto.service.ts:42Math.random only in non-security code (retry jitter).
V11.6.12Passsrc/crypto/jwk.service.ts:64; src/nhi/certificate.ts:74-90

V12 Secure Communication​

ReqLStatusEvidenceNotes and recommendation
V12.1.11N/Asrc/main.ts (plain HTTP); src/mtls/mtls-config.ts:15 (TLS 1.2+ on the mTLS listener)TLS terminates at the operator's proxy.
V12.1.22N/Asrc/mtls/mtls-server.ts:140Proxy concern; mTLS listener uses Node defaults.
V12.1.32Passsrc/mtls/mtls-server.ts:92,142; src/main.ts checkMtlsConfigCert validated per realm per request.
V12.2.11Partialsrc/main.ts helmet HSTS; secure cookiesHTTPS redirect is left to the proxy. Recommendation: Document it (S).
V12.2.21N/ACertificates live at the proxy.
V12.3.12Failsrc/risk-assessment/impossible-travel.service.ts:43,85; src/continuous-verification/network-context.service.ts:331 (http://ip-api.com)End-user IPs sent over plain HTTP to a third party; SMTP STARTTLS not required. Recommendation: Opt-in geo-IP over HTTPS or a local DB; requireTLS for SMTP (S/M).
V12.3.22Passsrc/user-federation/ldap.client.ts:49,69 (rejectUnauthorized true)
V12.3.32Partialdocker-compose.production.yml:64,75Internal DB/Redis links plaintext by default. Recommendation: Document sslmode=require and rediss (S).
V12.3.42Partial—No option to trust only an internal CA for DB/Redis/SMTP. Recommendation: (M)

V13 Configuration​

ReqLStatusEvidenceNotes and recommendation
V13.1.12Partialdocs/docs/security/threat-model.md (trust boundaries)Outbound connections now listed in the threat model; no operator inventory page. Recommendation: (S)
V13.2.12PartialDATABASE_URL/REDIS_URL/ADMIN_API_KEYStatic backend credentials. Recommendation: (M)
V13.2.22Partialdocker-entrypoint.sh (migrate deploy as the runtime user)One DB role for migration and runtime. Recommendation: Split roles (M).
V13.2.32Partialsrc/main.ts:30-36; src/crypto/crypto.service.ts:128-160Placeholders refused in production; prod compose Redis has no password. Recommendation: requirepass in compose (S).
V13.2.42Partialsrc/common/security/safe-http-client.tsBlocklist, not allowlist; some fetches bypass it (V1.3.6). Recommendation: (M)
V13.2.52Partialhelm/The chart has an opt-in NetworkPolicy (networkPolicy.enabled) with an egress allowlist, off by default. Recommendation: (M) enable it in production with egress rules for the providers the server calls.
V13.3.12Partialsrc/crypto/stored-secrets.ts; src/secrets-at-rest/Secrets encrypted at rest; key from env, no KMS. Recommendation: (L)
V13.3.22Partialhelm values (non-root, automount configurable)
V13.4.11Pass.dockerignore (.git excluded)
V13.4.22Passsrc/common/logger/logger.config.ts; src/common/filters/http-exception.filter.tsNo GraphQL endpoint.
V13.4.32Passsrc/main.ts:310 (index:false)
V13.4.42PassNo TRACE routes
V13.4.52Partialsrc/health/prisma-health.indicator.ts (generic message); src/main.ts:355 (Swagger at /api)FIXED in part: /health/ready no longer leaks the DB error. Swagger UI and /api-json are off in production unless SWAGGER_ENABLED=true (src/common/swagger-enabled.ts).

V14 Data Protection​

ReqLStatusEvidenceNotes and recommendation
V14.1.12Partialdocs/docs/security/threat-model.md (assets and their sensitivity)Assets classified in the threat model; no formal data-classification policy. Recommendation: (M)
V14.1.22Fail—No per-level protection requirements. Recommendation: (M)
V14.2.11Partialsrc/common/logger/redact-url.tsCodes and magic-link tokens travel in URLs by protocol design; redacted in logs.
V14.2.22Partialsrc/auth/auth.controller.ts:68 (no-store on /token)Other sensitive responses have no no-store. Recommendation: Global no-store for API responses (S).
V14.2.32Failsrc/risk-assessment/impossible-travel.service.ts:43End-user IPs sent to ip-api.com. Recommendation: As V12.3.1.
V14.2.42Partialsrc/events/admin-event-redaction.ts; src/events/events-cleanup.service.ts
V14.3.11Partialadmin-ui AuthContext (memory only)No Clear-Site-Data on logout. Recommendation: (S)
V14.3.22Partialsee V14.2.2
V14.3.32Passadmin-ui/src/api/client.ts:5No tokens in Web Storage.

V15 Secure Coding and Architecture​

ReqLStatusEvidenceNotes and recommendation
V15.1.11PartialSECURITY.md (90-day fix target)No SLA for third-party updates. Recommendation: (S)
V15.1.22Fail.github/workflows/docker-publish.ymlNo SBOM produced. Recommendation: npm sbom / sbom:true (S).
V15.1.32Fail—Resource-heavy functionality not documented. Recommendation: (S)
V15.2.11Partial.github/dependabot.ymlNo server npm audit gate in CI. Recommendation: (S)
V15.2.22Passsrc/app.module.ts:97; src/crypto/crypto.service.ts:82 (ARGON2_MAX_CONCURRENCY)
V15.2.32PassDockerfile (npm ci --omit=dev, prune)
V15.3.11Passsrc/users/users.service.ts:22 (USER_SELECT)
V15.3.22Partialsrc/tokens/backchannel-logout.service.ts, src/events/audit-streams.service.ts (redirect:error); src/broker/broker.service.ts, src/captcha/captcha.service.ts (follow)FIXED in part: back-channel logout and audit streams no longer follow redirects. Recommendation: Same for broker and CAPTCHA calls (S).
V15.3.32Passsrc/main.ts ValidationPipe; explicit Prisma data objects
V15.3.42Passsrc/common/utils/proxy-ip.util.ts
V15.3.52Partialsrc/auth/auth.controller.ts:64; src/account/account.controller.ts:235Untyped bodies: repeated keys become arrays (fails closed with 500). Recommendation: (M)
V15.3.62Passsrc/scim/scim-resource.ts (projectResource: reads and writes only keys the resource already has); src/scim/scim-bulk.service.ts resolveReferences (Object.fromEntries); src/theme/theme-render.service.ts:52
V15.3.72Partialas V15.3.5

V16 Security Logging and Error Handling​

ReqLStatusEvidenceNotes and recommendation
V16.1.12Fail—No log inventory. Recommendation: (S)
V16.2.12Partialsrc/common/logger/logger.config.ts:61x-request-id accepted unchecked; app log lines lack the actor. Recommendation: (S)
V16.2.22Passpino epoch ms; timestamptz
V16.2.32Partialstdout, audit streams, webhooks
V16.2.42Passpino JSON in production
V16.2.52Partialsrc/email/providers/*.provider.ts; src/sms/providers/*.provider.tsRecipient e-mail addresses and phone numbers logged at info. Recommendation: Log user ids or masked recipients (S).
V16.3.12Passsrc/realms/realm-security-defaults.ts (eventsEnabled, adminEventsEnabled on); src/events/events.service.tsFIXED in 0.10.0: new realms record login and admin events; older realms keep their setting.
V16.3.22Partiallogger.config.ts:28 (4xx at warn); admin-authorization.guard.ts (denials logged)
V16.3.32Partialsrc/brute-force/brute-force.service.ts (every lockout logged)FIXED in part: temporary lockouts are now logged; CSRF and validation failures are not. Recommendation: (S)
V16.3.42Passsrc/common/filters/http-exception.filter.ts:48
V16.4.12Passpino JSON escaping
V16.4.22N/ALog storage is the platform's.
V16.4.32Partialsrc/events/audit-streams.service.tsAvailable, opt-in.
V16.5.12Passsrc/common/filters/http-exception.filter.ts:57-64; src/health/prisma-health.indicator.ts
V16.5.22PassAbortSignal.timeout on outbound calls
V16.5.32Passsrc/main.ts (startup exits on bad keys); src/brute-force/brute-force.service.ts (serializable transaction)

V17 WebRTC​

ReqLStatusEvidenceNotes and recommendation
V17.1.12N/ANo WebRTC.
V17.2.12N/ANo WebRTC.
V17.2.22N/ANo WebRTC.
V17.2.32N/ANo WebRTC.
V17.2.42N/ANo WebRTC.
V17.3.12N/ANo WebRTC.
V17.3.22N/ANo WebRTC.