Security
OWASP ASVS 5.0: the OAuth, OIDC and token chapters, requirement by requirement
On this page
- Introduction
- The finding
- V9: Self-contained Tokens
- V10.1 / V10.2 / V10.5: client side
- V10.3: resource server
- V10.4: authorization server, the core
- V10.4.2 and concurrent redemption
- V10.4.8: fixed deadlines instead of a cap
- V10.6: OpenID Provider, and the requirement that was not met
- V10.7: consent
- What this sweep leaves open
- Currency check, August 2026
- V9 Self-contained Tokens: all seven, swept completely (21 August 2026)
- V9.1.2, turned from a review into a standing check
- V9.2.1: the gap, and why it was missed
- Chapter coverage after this pass
- V7 Session Management: nineteen requirements, one gap (21 August 2026)
- V7.2.4: the half that was missing
- What V7 leaves open
- V8 Authorization: the organisation boundary, audited by enumeration (21 August 2026)
- A claim that had to be withdrawn
- What the fix changes
- The rest of V8
- V11 Cryptography: twenty-four requirements (21 August 2026)
- V11.2.3: Signari was generating the weaker key
- V11.4.1: three MD5 sites, and why each stays
- RS256 and PKCS#1 v1.5
- V6 Authentication: forty-seven requirements (21 August 2026)
- Met above the bar
- V6.8.1: identities from several providers
- Partial
- ASVS status after this pass
- CWE coverage, from a tool (21 August 2026)
- The two that needed inspection
- The remaining 96, by class
- Why a tool run rather than a Top 25 checklist
- V3 Web Frontend Security: thirty-one requirements (21 August 2026)
- V3.3 Cookie Setup: all five met
- V3.4 Browser Security Mechanism Headers: the finding
- V3.4.8 Cross-Origin-Opener-Policy: not set, and why
- The rest of V3
- Mutation results
- Chapter coverage after this pass
- V16 Security Logging and Error Handling: seventeen requirements (21 August 2026)
- The finding: no last-resort error handler (V16.5.4)
- The wiring test
- V16.1.1: met by writing the document it asks for
- The rest of V16
- Chapter coverage after this pass
- V4 API and Web Service: sixteen requirements (21 August 2026)
- The finding: the origin was checked too late
- The smaller one:
*/+xmlserved without a charset - The rest of V4
- Chapter coverage after this pass
- V14 Data Protection and V17 WebRTC (21 August 2026)
- V17: twelve requirements, none applicable
- V14: the finding was in error pages
- The pages that must not use the helper
- A redirect after a form is sent as a page
- Pinned structurally
- The rest of V14
- Chapter coverage after this pass
- V1 Encoding and Sanitization: thirty requirements, no defects (21 August 2026)
- Checked, with the evidence
- The two places escaping is bypassed, and why both are safe
- Chapter coverage after this pass
- V12 Secure Communication and V13 Configuration (21 August 2026)
- V12, and the cipher suites
- V13: closed by construction more often than by a check
- Chapter coverage after this pass
- V2, V5 and V15: the last three chapters (21 August 2026)
- The finding: the duplicate-parameter rule was enforced at one endpoint
- The same guard had the opposite flaw
- V5 File Handling: thirteen requirements, none applicable
- V2 Validation and Business Logic
- V15 Secure Coding and Architecture
- ASVS 5.0.0, complete
- A correction to the V3 sweep: V3.5.2 (21 August 2026)
- The highest-risk controls re-checked after the page rework (24 August 2026)
- The controls most at risk from the page/server rework: all held
- Core security standards re-confirmed in current code
Introduction
The Open Worldwide Application Security Project (OWASP) publishes the Application Security Verification Standard (ASVS). It defines security requirements for web applications and services, in three levels, L1 to L3. Level 1 is the minimum to consider when securing an application.
This review reads OWASP Application Security Verification Standard 5.0.0,
released 30 May 2025. It was confirmed current from the project's own release
list (the latest tag is a bleeding-edge build, not a release). Requirements were
taken from the published CSV, not from a summary.
OpenID Connect (OIDC) is the layer on OAuth 2.0 that says who signed in. ASVS 5.0 introduced a new chapter, V10 "OAuth and OIDC", with 36 requirements. It is the first time this standard has covered an authorization server directly. Together with V9 "Self-contained Tokens" (7), that is 43 requirements aimed at what Signari is.
This page goes through every one of them. Signari is an authorization server and OpenID Provider, and is also an OIDC client for social sign-in and inbound federation, so both sides apply. The OAuth-client sections apply only to that inbound path. Later sections, dated from 21 August 2026, sweep the other chapters until all 345 requirements are covered.
It is for an auditor or a security reviewer who needs the evidence behind each verdict. A row's verdict is ✅ for met or ❌ for not met, followed by where the check is. A verdict that names a file and line can be checked by opening it.
The finding
One requirement was not met: V10.6.2. Everything else in the applicable sections was already satisfied, several by a stronger mechanism than the requirement asks for. Details below, then the gap.
V9: Self-contained Tokens
Re-verified against source in August 2026, one requirement at a time. The verdict column says where each check is, so a reader can verify it.
| Requirement | Verdict | |
|---|---|---|
| V9.1.1 | Validate signature before accepting contents | ✅ verifiedPayload returns the payload only after tok.Verify; every caller unmarshals from that return value, so no path reads claims first |
| V9.1.2 | Algorithm allowlist, no none, no symmetric/asymmetric confusion | ✅ the list is RS256, ES256, PS256, EdDSA: asymmetric only, none absent. The next check, if string(key.Algorithm()) != h.Algorithm, pins the algorithm to the key's declared one rather than the header's. That is what defeats algorithm confusion; an allow-list alone does not |
| V9.1.3 | Key material from pre-configured sources; reject jku, x5u, jwk | ✅ refused explicitly, and tested (TestATokenCannotSupplyItsOwnKey) |
| V9.2.1 | Honour nbf/exp | ✅ exp fail-closed: c.Expiry == 0 is treated as expired, not as absent. nbf is checked where an externally-minted JSON Web Token (JWT) arrives: private_key_jwt client assertions (privatekeyjwt.go:204, bounded by MaxClockSkew). Signari's own access tokens carry no nbf, so there is nothing to honour there. On the SSF receive path exp is forbidden, per SSF §4.1.7 |
| V9.2.2 | Validate token type and purpose | ✅ checked inside the shared verifier against a value the caller names, so a single-purpose token cannot be presented elsewhere: at+jwt, secevent+jwt, logout+jwt |
| V9.2.3 | Accept only tokens whose audience is this service | ✅, and the issuer check beside it is now tested too. It had survived mutation against the whole suite, and in Signari aliased issuers share a key set, so iss is the only thing separating them |
| V9.2.4 | Audience restriction when one key serves several audiences | ✅ audience := []string{c.ClientID}; if len(resources) > 0 { audience = resources }: RFC 8707 resources become the audience, and the client id is the fallback only when none were requested |
V10.1 / V10.2 / V10.5: client side
V10.2 (OAuth Client) and V10.5 (OIDC Client) apply to inbound social sign-in and federation. There, Signari is the application that relies on another identity provider, which OIDC calls the "relying party".
| Requirement | Verdict | |
|---|---|---|
| V10.2.1 | Cross-site request forgery (CSRF) defence on the code flow (Proof Key for Code Exchange (PKCE) or state) | ✅ both, and the state half is now tested; nothing referenced ConsumeFederatedLogin or core.federated_logins before. Single-use (DELETE … RETURNING), bound to the originating browser by a cookie hash compared in constant time, and the comparison happens after the row is destroyed, so a wrong binding still burns the state rather than leaving it open to repeated guesses. All three tested; dropping the binding comparison fails the second |
| V10.2.2 | Mix-up defence across several authorization servers | ✅ discovery.go:60: strings.TrimSuffix(d.Issuer,"/") != strings.TrimSuffix(issuer,"/") refuses a discovery document that declares an issuer other than the one asked for (RFC 8414 §3.3), and the id_token's iss is compared to the configured issuer again at client.go:252 |
| V10.5.1 | ID Token replay: nonce | ✅ generated per sign-in with randomToken() and stored on the pending record, so the empty-nonce path in verifyIDToken is unreachable from the live flow. Both directions tested: TestIDTokenAttacks covers nonce from a different login (replay) and no nonce at all |
| V10.5.2 | Identify the person by a claim that cannot be reassigned | ✅ the external identity is keyed UNIQUE (provider_id, subject) (migration 0022), so it is the issuer-and-subject pair rather than an address. An email is reassignable: a departed employee's address handed to their replacement would otherwise take over the account |
| V10.5.3 | Reject metadata whose issuer does not match | ✅ discovery.go:60, the same check OpenID for Verifiable Credential Issuance (OID4VCI) §12.2.3 and OpenID Federation §9 both state |
| V10.5.4 | ID Token aud equals our client id | ✅ audienceContains handles both the string and array forms, and TestAudienceArrayIsHandled plus the "audience is a different application" attack case cover it |
| V10.5.5 | Back-Channel Logout: typ, and denial of service through a forced sign-out | provider side yes; client side since October 2026. We send each logout_token explicitly typed logout+jwt (asserted in outbox/logouttoken_test.go), and the forced sign-out is handled at V10.6.2. When this was written, Signari did not receive OIDC Back-Channel Logout from upstream federation providers, and /ssf/receive, which accepts Continuous Access Evaluation Profile (CAEP) session-revoked, met the need instead. Since October 2026 an upstream provider's logout_token is received at /login/callback/{slug}/backchannel-logout: its signature is checked against the provider's keys, and it must carry the http://schemas.openid.net/event/backchannel-logout event, a jti used once, no nonce and a recent iat. Its typ is not required (see signing in through another provider) |
V10.3: resource server
Signari's userinfo and introspection endpoints are the "resource server": the API that accepts access tokens.
| Requirement | Verdict | |
|---|---|---|
| V10.3.1 | Accept only tokens whose audience is this service | ✅ AudienceAccepted gates /userinfo and the credential endpoint. Verified by mutation against the whole suite: making it return true unconditionally fails TestATokenForAnotherResourceIsRefused and TestAudienceRestrictionIsEnforcedAgainstOurselves |
| V10.3.2 | Enforce sub, scope, authorization_details in the decision | ✅ all three. The scope half is now tested at /oauth2/userinfo. The handler gates email, profile and groups individually, but no test varied the scope, so nothing established that a claim is withheld. A test asking for everything and receiving everything passes against a handler that ignores scope; only asking for less shows the difference. Releasing email unconditionally now fails TestUserinfoWithholdsClaimsTheScopeDidNotGrant |
| V10.3.3 | Identify the person by a non-reassignable claim | ✅ sub is core.users.id, a uuid NOT NULL DEFAULT gen_random_uuid(), verified in the schema, not inferred from the code that reads it |
| V10.3.4 | Enforce acr, amr, auth_time when required | ✅ ACRFromAMR derives the context from the factors used, and FlowDemandsMFA is consulted per authorization request rather than fixed at sign-in: a live password-only session is stepped up when acr_values demands it |
| V10.3.5 (L3) | Sender-constrained tokens | ✅ both, with 7 tests across dpoprefresh_test.go and mtlsrefresh_test.go covering the bound key refusing a different key, refusing no proof at all, and still working with the right one |
V10.4: authorization server, the core
V10.4.2 and concurrent redemption
The requirement was met and the revocation was tested:
TestCodeReuseRevokesTheIssuedTokens replays the code and then reads
core.refresh_token_families to confirm revoked_at is set.
No test reached concurrency. A stolen authorization code races the legitimate client, since both hold it at the same moment. A sequential "redeem twice" test passes even against an implementation that reads the row, decides it is unspent, and updates it afterwards, because the window between the two is never open.
ConsumeCode spends a code in one statement:
SQLUPDATE core.authorization_codes SET consumed_at = now()WHERE code_hash = $1 AND consumed_at IS NULL RETURNING ...
Rewriting it into a SELECT followed by an UPDATE makes
TestConcurrentRedemptionOfOneAuthorizationCodeYieldsOneTokenSet report 8 of 8
simultaneous redemptions received tokens. Every pre-existing test, including
the revocation one above, still passes, so a racy implementation would have
passed the suite.
Two tests now pin it: eight goroutines released together against one code over three rounds, and a behavioural check that the refresh token is exercised before the replay and its rotated successor refused after, so revocation is measured by the refresh grant being denied rather than by a column being set.
V10.4.8: fixed deadlines instead of a cap
The requirement is "refresh tokens have an absolute expiration, including if sliding refresh token expiration is applied".
Rotation mints a new token with a fresh expiry, so the token-level deadline
does slide. What does not slide are the two deadlines a lineage rotates within,
both fixed when the authorization is given. RotateRefreshToken requires one of
them to be ahead:
SQLAND (f.offline_not_after > now() OR (s.revoked_at IS NULL AND s.not_after > now()))
A grant of offline_access carries its own offline_not_after, the
organisation's offline lifetime from the moment it was given (thirty days
unless changed), set once and never moved. Otherwise the lineage lives while its
session does. A session's not_after moves with use since the idle limit was
added in October 2026, but a CHECK constraint holds it inside
absolute_not_after, which is fixed at sign-in. So a lineage cannot outlive the
authorization that started it, however many times it rotates. This goes further
than a cap on the credential, because it expires the authorization rather
than the token representing it.
Until October 2026 the clause read s.sid IS NULL OR (…), so a family with no
session never expired. No caller created one, but nothing stopped a later caller
from doing so. NewRefreshFamily
refuses an empty sid, TestARefreshFamilyMustNameASession keeps it that way,
and the clause no longer has the branch.
V10.6: OpenID Provider, and the requirement that was not met
| Requirement | Verdict | |
|---|---|---|
| V10.6.1 | Only code, ciba, id_token, id_token code; never token | ✅ response_types_supported is ["code"] alone, and the authorize endpoint refuses anything containing token outright, because an access token must never cross the front channel |
| V10.6.2 | Mitigate denial of service through a forced sign-out | ❌ → fixed, and tested. The fix depends on verified versus present: logoutconfirm_test.go asserts that an unverified id_token_hint does not skip the confirmation. Otherwise the parameter meant to prevent the attack would reintroduce it |
V10.6.2, verbatim:
Verify that the OpenID Provider mitigates denial of service through forced logout. By obtaining explicit confirmation from the end-user or, if present, validating parameters in the logout request (initiated by the relying party), such as the
id_token_hint.
OIDC RP-Initiated Logout 1.0 §2 says the same from the other side: the OP
"SHOULD ask the End-User whether to log out" unless the request carries a valid
id_token_hint.
Signari did neither. GET /oauth2/logout terminated the session in the
caller's cookie unconditionally. id_token_hint was parsed, but only to resolve
which client's post_logout_redirect_uri list to check. A request with no
redirect never looked at it.
The attack is one HTML tag, on any page the victim visits:
HTML<img src="https://id.example.com/oauth2/logout">
The victim is signed out each time the page loads. Nothing is stolen, but the person cannot stay signed in, and cannot tell this from a bug.
Fixed. A sign-out now proceeds without asking only when one of three things is true:
- The request is a
POSTcarrying a valid cross-site request forgery (CSRF) token, so the person confirmed. - It carries an
id_token_hintthat verifies. An application asked for the sign-out, which the specification accepts in place of asking the person. - There is no session cookie at all, so there is nothing to end.
Otherwise a confirmation page is rendered, and nothing is terminated.
The form POSTs back to the request URI, so post_logout_redirect_uri, state
and client_id survive the round trip and are validated as before.
The hint must be verified, not only present: an unverified id_token_hint is
a string the attacker chose, and accepting one would reintroduce the attack
through the parameter meant to prevent it.
TestAnUnverifiedIDTokenHintDoesNotSkipConfirmation checks this.
V10.7: consent
| Requirement | Verdict | |
|---|---|---|
| V10.7.1 | Consent to each authorization request | ✅, including the hard case: authorization_details always prompt, and neither stored consent nor the first-party exemption can bypass that. A person who approved the scope payments approved a capability, never a payment. TestAuthorizationDetailsAlwaysPromptEvenForAFirstPartyClient |
| V10.7.2 | Clear information about what is being consented to | ✅ scopeDescriptions maps each scope to a human sentence and the screen renders {Name, Description} pairs, so a person is not asked to approve the string groups |
| V10.7.3 | A person can review, modify and revoke granted consents | ✅ the connected-applications screen, which revokes the tokens with the consent, now tested. WithdrawConsent deliberately does not touch tokens; only DisconnectApp does both, in one transaction. So the requirement depends on one caller choosing the right function. A later handler that called WithdrawConsent instead would keep the screen working and leave the tokens live, with no error |
What this sweep leaves open
: done, which closed V10.3.2 and V10.4.15. See rich authorization requests.authorization_details(RFC 9396) is not implemented- V10.4.13 and V10.4.14 are L3 requirements met as capabilities rather than as mandates. Making Pushed Authorization Requests (PAR) and sender-constrained tokens compulsory for every client is a deployment decision, not a code change, and forcing it would break every client that does not do them yet.
Neither is a defect. Both are recorded because "not met at L3" and "not met" read identically in a table that does not say which.
Currency check, August 2026
ASVS 5.0.0 (30 May 2025) is still the current stable release. The OWASP/ASVS
repository carries a release tagged latest, published 28 July 2026, which is
newer than 5.0.0 and looks like a successor. It is an automatically regenerated
bleeding edge build from master, and its own release notes say so:
"This bleeding-edge version represents the most current state of the ASVS documentation and should be used for testing and preview purposes only. For production use, please refer to the stable releases (The latest stable release is v5.0.0)."
Downloading its CSV and diffing against the 5.0.0 CSV this review was written against gives zero differing lines. V10 "OAuth and OIDC" still has exactly 36 requirements, unchanged.
So this review is current. The check takes one download. Repeat it before you rely on the review again, since a new release could make the review out of date.
V9 Self-contained Tokens: all seven, swept completely (21 August 2026)
The ASVS 5.0.0 requirement set was downloaded and enumerated: 345 requirements across 17 chapters. V9 is seven of them, few enough to check every one rather than a sample.
| Requirement | Status |
|---|---|
| V9.1.1 signature validated before contents are accepted | met: verifiedPayload returns the payload only after tok.Verify, and no caller can reach claims another way |
V9.1.2 algorithm allowlist, no None | met, and now guarded (see below) |
V9.1.3 key material only from pre-configured sources; jku/x5u/jwk validated | exceeded: those headers are refused outright rather than allowlisted |
V9.2.1 validity span honoured (nbf and exp) | was partial, fixed (see below) |
| V9.2.2 correct token type for the purpose | met structurally: every verification passes an expected typ, so there is no code path that reads claims without one |
| V9.2.3 audience checked against an allowlist | met |
| V9.2.4 audience restriction uniquely identifies the audience | met: RFC 8707 resources become aud, so they are validated as the audience |
V9.1.2, turned from a review into a standing check
The engine parses signed tokens in nine places: access tokens, ID tokens,
Demonstrating Proof of Possession (DPoP) proofs, SSF events, federation trust chains, upstream OIDC, Apple client secrets,
private_key_jwt, ABCA attestations. Each passes its own allowlist to
jose.ParseSigned. The library makes the list mandatory, so it cannot be
forgotten.
That cannot prevent a later edit adding jose.HS256 to one of the eight "so the
test client works". A reviewer looking at that file sees a plausible list.
TestNoTokenVerifierAcceptsNoneOrHMAC checks all eight at once, and fails naming
the file and line. This was verified by planting jose.HS256 in the DPoP
allowlist:
Text1 token verifier(s) admit 'none' or an HMAC algorithm: engine/internal/dpop/dpop.go:73: jose.HS256,
It also refuses to pass if it finds fewer than five ParseSigned sites, so it
cannot succeed by walking the wrong directory. That mistake once let a mutation
harness report eight covered guards as uncovered.
Accepting only asymmetric algorithms goes further than V9.1.2 asks. The requirement allows both families with "additional controls... to prevent key confusion". With no symmetric algorithm in any verifier, that attack cannot be constructed here: there is no context in which a public key could be presented as an HMAC secret, because nothing will accept an HMAC.
V9.2.1: the gap, and why it was missed
internal/federation/client.go validated iss, aud, exp and nonce on an
upstream ID token, but not nbf.
"Verify that, if a validity time span is present in the token data, the token and its content are accepted only if the verification time is within this validity time span. For example, for JWTs, the claims 'nbf' and 'exp' must be verified."
An upstream that said "not valid before T" was honoured before T.
It was missed because Signari never emits nbf. Every token this code was written
against and tested with lacked one, so nothing exercised the missing branch. The
claim only arrives from another issuer, which is the direction this file handles.
Fixed, with iat bounded in the same direction and by the same ten seconds
clientauth allows for FAPI 2.0 §5.3.2.1. Both cases are now in
TestIDTokenAttacks beside "expired", "no expiry at all" and "alg none", and the
nbf case was kill-checked.
Chapter coverage after this pass
V9 complete (7/7). V10 OAuth and OIDC was swept earlier at 41 of 43 evidenced. V6 Authentication (47), V7 Session Management (19), V8 Authorization (13) and V11 Cryptography (24) have partial coverage from the protocol reviews but no requirement-by-requirement sweep. That is recorded as an open decision, not claimed as met.
V7 Session Management: nineteen requirements, one gap (21 August 2026)
| Requirement | Status |
|---|---|
| V7.2.1 verification on a trusted backend | met: the cookie is a reference token resolved against the database on every request |
| V7.2.2 dynamically generated, not static secrets | met |
| V7.2.3 CSPRNG, ≥128 bits | exceeded: newSID is 32 bytes from crypto/rand, 256 bits, and the sid and cookie token are two independent values |
| V7.2.4 new token on authentication and the current one terminated | was half met, fixed (below) |
| V7.4.1 termination disallows further use | met: every lookup filters revoked_at IS NULL |
| V7.4.2 all sessions terminated when an account is disabled | exceeded: session lookups join u.status = 'active', so disabling a person's account ends every session at once, with no sweep and no window |
| V7.4.3 option to end other sessions after a factor changes | met: a password change ends every session, this one included (httpapi/passwordselfservice.go:180-187), and /account/sessions ends any or all of them after any other change |
| V7.4.5 administrators can terminate sessions | met: ReasonAdminRevoke |
| V7.3.1 inactivity timeout | not met when this was written; an idle limit has since been built, signari instance session-lifetime -idle, off until it is set |
| V7.3.2 absolute maximum lifetime | met: not_after, enforced in every lookup as well as by the sweep |
| V7.5.2 people can view and terminate their sessions | met: /account/sessions lists them (device, how each signed in, when) and ends one or all (ReasonUserRevoke) |
| V7.1.1–7.1.3 documentation of timeouts, concurrency, federation | met, November 2026: the security inventories |
V7.2.4: the half that was missing
"Verify that the application generates a new session token on user authentication, including re-authentication, and terminates the current session token."
completeSignIn mints a fresh sid and cookie token every time, so session
fixation has never worked here. The previous session row, however, stayed live
until not_after.
This mattered most for step-up. Someone signs in with a password (acr=1),
something asks for another factor, they re-authenticate, and they now hold an
acr=2 session. The acr=1 session remained valid for hours, so anyone holding
that earlier cookie kept a working password-only session. Step-up is often
prompted because something looked wrong, so the stale session is the one an
attacker is most likely to hold.
The old session is now terminated in the same transaction that creates the
replacement, so a crash between the two cannot leave both live. It goes through TerminateSessions rather than an UPDATE,
which means the CAEP session-revoked notices are queued too. Applications
holding tokens from the old session learn it ended, instead of discovering it at
expiry.
This is scoped to the session this browser presented, not to the person. Someone signed in on a phone and a laptop who re-authenticates on the laptop has not asked to be signed out of the phone. Ending every session would turn each step-up into a global sign-out. There is a test for each direction.
There is a new reauthenticated termination reason, instead of reusing
logout. An administrator reading the audit trail should be able to tell a
session that ended because somebody left from one that ended because it was
superseded. The value also travels to applications in the CAEP event.
What V7 leaves open
V7.3.1 (inactivity timeout) was open when this was written. An idle limit was
added in October 2026, and is off until an administrator sets it. V7.4.3 and V7.5.2 both
describe a page, and when this was written the mechanism existed without one.
The page has since shipped as /account/sessions, and both are met.
V8 Authorization: the organisation boundary, audited by enumeration (21 August 2026)
V8.4.1 ("multi-tenant applications use cross-tenant controls to ensure consumer operations will never affect tenants with which they do not have permissions to interact") is checkable by enumeration rather than reading, because the boundary is in the schema. ASVS says "tenant" where Signari says organisation.
Querying pg_class for every core table carrying org_id found 58 tables,
of which 18 did not enforce isolation:
- 11 with no row-level security at all:
audit_events,credential_configurations,credential_nonces,preauthorized_codes,rac_sessions,duo_enrollments,duo_challenges,client_attesters,attestation_challenges,authorization_detail_types,client_authorization_detail_types - 7 with a policy but no FORCE:
relations,authorization_models,impersonations,event_deliveries,event_subscriptions,ssf_received,ssf_sources
The FORCE half is less obvious. Core tables are owned by signari_engine, and
PostgreSQL exempts a table's owner from its own policies unless FORCE is set.
So those seven carried a policy that did nothing for the engine. That was not a
decision; it was a database default.
A claim that had to be withdrawn
The first version of this finding said the console could reach other organisations' rows in the eleven unprotected tables. That was wrong. Checking the roles shows why:
| Role | Reaches core | BYPASSRLS | LOGIN |
|---|---|---|---|
signari_admin (the Laravel console) | no grants at all, only 15 views in core_v1 | no | yes |
signari_maintenance | full DML | yes, deliberately | no, SET ROLE only |
signari_engine | owner | no | yes |
The console cannot touch a core table with or without row-level security. signari_maintenance
is exempt on purpose, and migration 0003 says so: "Cross-org
maintenance (key rotation, expiry sweeps, the bootstrap CLI) runs as
signari_maintenance." It is NOLOGIN, so it is reachable only by an explicit
SET ROLE.
So no role that connects today was crossing organisations, and none could have. The finding stands, at a lower severity than first written.
The error was asserting what a component does without reading it, the same mistake this review found three times elsewhere.
What the fix changes
All fifty-eight org-scoped tables now behave the same way. is_engine() is the
one visible exception, rather than one exception plus an ownership default, and a
role added later inherits the boundary instead of eleven undocumented exceptions.
TestEveryOrgScopedTableEnforcesTenantIsolation keeps it that way. The eighteen
exceptions were never decisions: a table was created, its migration did not copy
the four lines the other fifty-seven carry, and nothing noticed. The test fails
and names the table. This was verified by dropping FORCE from relations:
Textrelations: enabled but not FORCEd, so the owning role (signari_engine)bypasses the policy silently
It also refuses to pass if it finds fewer than 40 org-scoped tables, so it cannot succeed by querying the wrong schema.
The rest of V8
| Requirement | Status |
|---|---|
| V8.2.1 function-level access restricted to explicit permissions | met: Principal.Can, and every Admin API route checks a scope |
| V8.2.2 data-specific access, IDOR/BOLA | met: MayActOn on both the create path and the update path. The comment there says why: "a boundary that holds for creates and not for edits is worse than no boundary" |
| V8.3.1 enforced at a trusted service layer | met |
| V8.3.3 decisions use the originating subject's permissions | met: RFC 8693 act chains the actor rather than replacing the subject |
| V8.4.1 cross-organisation controls | met, and now uniform |
| V8.1.x documentation of the rules | met, November 2026: the security inventories says where each boundary is enforced and which page holds its rules |
| V8.2.3 field-level (BOPLA) | met, November 2026: applications get an attribute of a person only through a claim mapper naming it, its client and its scope; an Admin API token may be narrowed to named attributes (attribute_names, Admin API access) and is then refused every other attribute's value, directly or through a mapper, an export, a configuration file or a role. Outbound System for Cross-domain Identity Management (SCIM) sends a fixed minimal set (userName, externalId, active, name, emails, displayName), never an attribute |
| V8.2.4 / V8.4.2 adaptive controls, layered administrative access | partial: the policy engine evaluates device posture and impossible travel; it is not applied to the administrative interfaces specifically |
V11 Cryptography: twenty-four requirements (21 August 2026)
| Requirement | Status |
|---|---|
| V11.2.1 industry-validated implementations | met: Go's standard library and x/crypto; no hand-rolled primitives |
| V11.2.3 minimum 128 bits of security | was not met for generated RSA keys, fixed (below) |
| V11.2.4 constant-time comparison | met: subtle.ConstantTimeCompare on every secret comparison, and hmac.Equal where a MAC is compared |
| V11.3.1 no insecure block modes or weak padding | met for encryption: AES-GCM everywhere, RSA-OAEP for Security Assertion Markup Language (SAML) key transport. See the RS256 note below |
| V11.3.2 approved ciphers such as AES-GCM | met: cipher.NewGCM in keys/store.go, keys/subject.go, saml/encrypt.go |
| V11.3.3 encrypted data protected against modification | met: GCM is authenticated encryption, so this is the same fact as V11.3.2 |
| V11.4.1 approved hash functions; no MD5 | met, with three protocol-mandated exceptions, below |
| V11.4.2 password hashing with an approved KDF | met: Argon2id |
| V11.4.3 collision-resistant hashes ≥256 bits for signatures | met: SHA-256 and above throughout; SHA-1 refused on inbound SAML |
| V11.5.1 CSPRNG, ≥128 bits of entropy | exceeded: crypto/rand, 256 bits for session and device codes |
| V11.6.1 approved algorithms for key generation and signatures | met: P-256, Ed25519, RSA |
| V11.1.x documented key policy and inventory | met, November 2026: the security inventories |
| V11.7.x in-use memory encryption | not met, and out of scope for a server process |
V11.2.3: Signari was generating the weaker key
"Verify that all cryptographic primitives utilize a minimum of 128-bits of security based on the algorithm, key size, and configuration. For example, a 256-bit ECC key provides roughly 128 bits of security where RSA requires a 3072-bit key to achieve the same."
keys.Generate produced 2048-bit RSA for RS256 and PS256, roughly 112 bits.
That is the NIST floor for "acceptable until 2030", not the 128-bit floor ASVS
asks for.
P-256 is the default algorithm and already clears it, which is why this was missed: almost every deployment signs with ES256. RS256 exists for clients whose libraries do only RSA, and those clients were handed the weaker key.
Now 3072.
Raising this floor costs nothing, but raising the other RSA floor would. They are two different numbers, and two standards pull them in opposite directions:
- What Signari generates is entirely its own choice. Clients fetch the modulus from its JSON Web Key Set (JWKS), and verify with whatever it publishes. RSA verification is size-agnostic in every mainstream library, and the extra cost lands on a path that is not hot.
- What Signari accepts from a client stays at 2048 (
clientauth.MinRSABits), because FAPI 2.0 §5.4.1 sets that floor and most clients hold 2048-bit keys. Raising it would refuse working integrations to gain sixteen bits of security in somebody else's key, and the client is the party bearing that risk.
So Signari is strict about its own key, and follows the usual floor for a client's.
V11.4.1: three MD5 sites, and why each stays
MD5 appears in three places, each annotated at the call site:
radius/packet.go: RFC 2865 §5.2 specifies MD5 for theUser-Passwordkeystream and RFC 3579 §3.2 specifies HMAC-MD5 for Message-Authenticator. Neither is optional: an access point that expects RFC 2865 will not interoperate with anything else. HMAC-MD5 is also not affected by the collision attacks that motivate avoiding MD5, which is why the mitigation for Blast-RADIUS is the HMAC-MD5 attribute.radius/eapserver.go: RFC 2548 MS-MPPE key derivation, same argument.passwords/foreign.go: verifying somebody else's stored hash during a migration. Signari never produces these. It reads them once, checks the password, and writes an Argon2id hash in their place. Refusing to verify them would mean refusing to migrate the deployments this feature exists for.
The first two are protocols that predate the guidance in ASVS's "for any cryptographic purpose". The third is not Signari's hash.
RS256 and PKCS#1 v1.5
V11.3.1 names "weak padding schemes (e.g., PKCS#1 v1.5)". RS256 is RSASSA-PKCS1-v1_5, and a strict reading catches it.
The requirement's concern is RSAES-PKCS1-v1_5, the encryption padding that
Bleichenbacher's attack breaks. Signari does not use it: SAML key transport is
RSA-OAEP. RSASSA-PKCS1-v1_5 for signatures remains approved in NIST FIPS 186-5,
and is the RS256 every OIDC client library implements.
It is still the weakest thing Signari offers, and it is already recorded as a FAPI
deviation: FAPI 2.0 §5.4.1's list is PS256, ES256, EdDSA, and RS256 is not on
it. The decision to keep or drop it is the same decision in both standards. It is
not one for a single reviewer to make alone, because dropping it would refuse
every client that implements only RS256.
V6 Authentication: forty-seven requirements (21 August 2026)
The largest chapter, and the one most central to Signari. The sweep found no new defects, as expected for the area that has had the most attention.
Met above the bar
| Requirement | Ours |
|---|---|
| V6.2.1 ≥8 characters, 15 recommended | 15 by default: NIST SP 800-63B-4 §3.1.1.2's SHALL for single-factor, with a comment recording that the previous value of 8 was an accurate citation of revision 3, "the more dangerous kind of stale" |
| V6.2.9 ≥64 characters permitted | 1024; MaxLength exists to bound the hasher, not the password: "Argon2 over a megabyte of input is a denial of service with a text box in front of it" |
| V6.2.8 verified exactly as received | met: argon2.IDKey([]byte(password), ...) takes it verbatim; the only ToLower is inside the guessability estimator and never reaches the hash |
| V6.2.5 no composition rules | met |
| V6.2.12 checked against breached passwords | met: internal/passwords/breached.go |
| V6.3.2 no default accounts | met: no migration seeds an account |
| V6.4.2 no password hints or secret questions | met: nothing of the kind exists |
| V6.5.1 OTPs usable only once | met: the code hash is nulled on success, under FOR UPDATE so two concurrent attempts cannot both spend it. A time-based one-time password (TOTP) carries lastUsed, the highest counter already accepted, which is the replay check a TOTP code needs |
| V6.5.3 CSPRNG for codes | met: rand.Int rather than modulo over a byte, with the reason written down: "a six-digit code has only a million of them, so the distribution IS the entropy" |
| V6.5.8 TOTP time from a trusted source | met: the counter is computed server-side and never read from the request |
| V6.6.2 OOB codes bound to their request | met, November 2026: the hash of the sign-in's attempt is kept beside each emailed or texted code (store/codeattempt.go); see below |
| V6.6.3 OOB codes rate limited | met: a per-credential attempts counter, and one live code per person by construction |
V6.8.1: identities from several providers
"Verify that, if the application supports multiple identity providers (IdPs), the user's identity cannot be spoofed via another supported identity provider (e.g. by using the same user identifier)."
internal/federation/decide.go sets out the attack in five steps and then says:
"This package has no email-matching path at any setting." Identities are keyed
(provider_id, subject), a database UNIQUE constraint rather than a convention,
and attaching an external account to a local one requires authenticating locally
first, which proves control of both sides rather than asserting it from an email
address.
Partial
V6.6.2: codes bound to the original authentication request, met, November 2026 (specs/asvs-5.0.0.txt:2528-2530). Codes were bound to the person, so one issued during one sign-in could be spent in another, and a Lightweight Directory Access Protocol (LDAP) bind or the desktop sign-in took a texted or emailed code sent for a browser's sign-in. Now the sign-in's pending token names an attempt, and the hash of that attempt is kept beside the emailed or texted code. A password reset uses its link as the attempt, and an emailed first-factor code uses the request that asked for it. A code given in any other attempt is refused there. Binding does not stop the relay attacks people run (persuading someone to read a code aloud), since the relayer is the one who started the sign-in; see email codes.V6.1.x, V6.3.4: documentation of every authentication pathway and its strength, met, November 2026: all of them side by side, with what each records, in the security inventories.- V6.4.4: identity proofing at enrolment level when a factor is lost. Signari has recovery codes and delay-and-notify recovery. It does not do identity proofing, which is an IAL question rather than an authenticator assurance level (AAL) one.
- V6.3.5, V6.3.7: notification of suspicious attempts and of credential changes. Passkey bind and removal now notify (NIST §4.1.2 and §4.5). Password changes and unusual-location sign-ins did not, when this was written, and an account had one notification address, so there was only one channel. Since then a password change sends a notice, and a verified SMS number gives an account a second channel that every security notice also goes to.
ASVS status after this pass
| Chapter | Requirements | State |
|---|---|---|
| V6 Authentication | 47 | swept |
| V7 Session Management | 19 | swept, 1 defect fixed |
| V8 Authorization | 13 | swept, 18 tables corrected |
| V9 Self-contained Tokens | 7 | swept, 1 defect fixed |
| V10 OAuth and OIDC | 36 | swept earlier, 41 of 43 items evidenced |
| V11 Cryptography | 24 | swept, 1 defect fixed |
146 of 345 requirements now have a requirement-by-requirement sweep, covering every chapter that governs an identity provider's core function. The remaining 199 are in chapters about frontend rendering, file handling, WebRTC, configuration and general secure coding: relevant to the product, not specific to it, and not where this engine's risk concentrates.
That last sentence was wrong about V3, and V3 has now been swept (see below). "Frontend rendering" is where the sign-in page lives, and V3.4 is the chapter that says what the browser is told to do with it. The sweep found five response headers absent entirely, two of them Level 1.
CWE coverage, from a tool (21 August 2026)
The Common Weakness Enumeration (CWE) Top 25 was to be checked too. It could not be retrieved at the time: both
cwe.mitre.org/top25/archive/2024/ and the 2025 page render their tables in
JavaScript, and the served HTML contains no CWE identifiers at all, so a
scrape returns none. The CWE REST API resolves an ID to a name but does not
publish the ranked list.
Listing twenty-five weaknesses from memory and asserting each is handled would produce no evidence. So the CWE question was answered the other way round: run a tool that maps findings to CWE identifiers against the code, and triage what it reports.
gosec scanned 252 files, 74,737 lines, and reported 98 findings.
The two that needed inspection
G407 / CWE-1204, hardcoded IV, in saml/encrypt.go. A constant nonce under
AES-GCM breaks the cipher, so this was checked first and in full. It is a false
positive: the code calls
cipher.NewGCMWithRandomNonce(block) and then gcm.Seal(nil, nil, ...). That
API requires the nil, because it generates a fresh nonce per call and prepends
it. The rule predates the constructor.
The choice was already deliberate. The surrounding comment explains that the prefix-IV/suffix-tag layout is what XML Encryption expects, and that letting the library own the nonce is what makes it work under FIPS 140-only mode, "where GCM with a caller-supplied IV is refused outright".
G118 / CWE-400, request context not used, in httpapi/outpost.go. A
goroutine recording an outpost's last_seen_at uses context.Background() with
a five-second timeout rather than the request context. That is deliberate: the
write must outlive the request, and r.Context() would cancel it as soon as
the response is written. The recording would then land only when the database
finished before the handler returned. The failure would be intermittent, and
would show up later as "the outpost stopped reporting".
Both are now annotated with the reason, rather than left in the report. A finding that is always ignored can hide the next real one: an edit that introduced a constant nonce would land in a report that already held an ignored G407.
The remaining 96, by class
| Rule | CWE | Count | Assessment |
|---|---|---|---|
G101 | 798 | 37 | Name-pattern false positives. The rule matches identifiers containing "token", "secret", "credential"; these hold protocol constants: at+jwt, urn:ietf:params:oauth:token-type:access_token, SAML URNs, provider endpoint URLs, /oauth2/token |
G304 | 22 | 29 | File reads with a non-constant path; every one is an administrator-supplied CLI flag (certificate bundles, the GeoIP database) |
G703 | 22 | 8 | The same class under taint analysis. An administrator who can set --ldap-ca can already read the file |
G710 | — | 13 | Style-level |
G114, G203, G204, G117, G306, G706 | various | 9 | Low-severity, reviewed, none attacker-reachable |
The G101 and G304/G703 groups are cases the tool cannot decide: whether a string is a credential, and whether a path is attacker-controlled. In code full of token type URNs, the first produces only false positives.
Why a tool run rather than a Top 25 checklist
A checklist answers "have you thought about SQL injection". A tool run lists the 98 places in the code that match a weakness class, and the triage says what each one turned out to be. The run can be repeated and checked, and it produced two annotations for the next reader.
It does not cover the classes gosec has no rule for: business-logic flaws, authorization gaps, and the protocol-level defects that made up almost everything the August 2026 review found. Those came from reading specifications against source, which no scanner does.
V3 Web Frontend Security: thirty-one requirements (21 August 2026)
This chapter was outside the earlier sweeps, for the reason quoted above. That reason was based on the chapter's title, without opening the chapter. The sign-in page is the most attacked page Signari serves, and V3.4 governs that page.
Requirements were taken from the ASVS 5.0.0 JSON export: 345 across 17 chapters, which matches the count already in this document, so it is the right revision.
V3.3 Cookie Setup: all five met
Every cookie the engine sets carries
the __Host- prefix (__Host-signari_session, __Host-signari_csrf,
__Host-signari_pending, __Host-signari_ceremony), which the browser enforces
as Secure + Path=/ + no Domain, alongside explicit Secure, HttpOnly and
SameSite=Lax. V3.3.1 through V3.3.5 hold, and the __Host- choice satisfies
V3.3.1 and V3.3.3 with one mechanism instead of two conventions.
V3.4 Browser Security Mechanism Headers: the finding
Five headers were absent from the engine entirely, with zero occurrences across
internal/:
| Requirement | Level | State before | Now |
|---|---|---|---|
V3.4.4 X-Content-Type-Options: nosniff | L1 | absent | set on every response |
V3.4.1 Strict-Transport-Security | L1 | absent | max-age=31536000; includeSubDomains, https issuers only |
V3.4.5 Referrer-Policy | L2 | absent | no-referrer |
V3.4.3 base-uri 'none' in CSP | L2 | absent | appended to all ten policies |
V3.4.8 Cross-Origin-Opener-Policy | L3 | absent | deliberately still absent (see below) |
V3.4.4 mattered most. Signari answers JSON on nearly every endpoint, and several
of those responses echo caller-supplied values back inside an
error_description. Without nosniff, a browser may decide a JSON body is HTML
and render it, turning an echoed request parameter into script execution on the
issuer's own origin, which holds the session cookie. It is a Level 1
requirement, and it was missing from every response the engine had sent.
For V3.4.3, Signari's policies opened with default-src 'none', which covers
object-src, because that directive falls back to default-src. base-uri
does not. It is deliberately outside the default-src chain, which is why
V3.4.3 names both rather than one. So every page Signari rendered left <base> unrestricted,
including the sign-in page, where script-src is relaxed to 'self' and widened
further to a provider's origins when a CAPTCHA is configured.
With script-src 'self' an injected <base> cannot pull script from another
origin, so this is hardening rather than a live hole. The directive keeps that
protection if a policy is widened later.
There were ten places building a CSP by hand. Editing ten string literals would
fix ten pages and do nothing about an eleventh, copied later from one of them.
All ten now go through setCSP, which appends the invariants. That leaves one
place that can forget them, and a test checks it.
V3.4.8 Cross-Origin-Opener-Policy: not set, and why
COOP: same-origin severs window.opener when a cross-origin document opens one
of Signari's pages in a popup. Popup-mode OIDC is a common pattern for
applications. The application opens /oauth2/authorize in a popup, and its own
callback page messages the opener when the flow completes.
Setting COOP on the authorization, sign-in or consent pages breaks that chain. The
popup lands back on the application's origin with window.opener already null.
same-origin-allow-popups does not help. It governs popups Signari opens, not
the opener relationship of a popup Signari is inside.
So this L3 requirement is not met, deliberately. Meeting it would break a documented integration pattern for applications.
The rest of V3
| Section | Verdict |
|---|---|
| V3.1.1 documentation of expected browser features | met, November 2026: the security inventories, with what happens without each |
| V3.2.1 / V3.2.2 content interpretation | met: nosniff now, and all rendering goes through html/template, which escapes by context |
| V3.2.3 DOM clobbering | not applicable: the sign-in form needs no JavaScript, as a standing test checks |
| V3.4.2 Cross-Origin Resource Sharing (CORS) allowlist | met: a fixed allowlist, checked earlier under V10 |
V3.4.6 frame-ancestors | met: every page sets it to 'none'; ASVS considers X-Frame-Options obsolete, and Signari sends both |
| V3.4.7 CSP report location | met, November 2026: every policy carries report-uri /csp-report, from the one helper that sets a policy. A report is counted by directive and nothing from it is logged or kept, since it can name a URL carrying a code. Proved in Chrome 156: an injected script was refused and its report arrived at the counter |
| V3.5.1 / V3.5.3 origin separation, CSRF, safe methods | met: per-session CSRF tokens, POST for every sensitive operation |
| V3.5.2 preflight cannot be bypassed | |
| V3.5.5 postMessage | not applicable: zero uses |
| V3.5.6 JSONP | not applicable: zero uses |
| V3.6.1 subresource integrity | not applicable by default: no external assets are loaded; the CAPTCHA case is the sole exception and already carries a written justification at the CSP that permits it |
| V3.7.2 redirect allowlist | met: redirect_uri is an exact-match allowlist per client |
| V3.7.4 HSTS preload | not done; a deployment decision for whoever owns the domain, not the engine |
Mutation results
Each fix was reverted in turn, and a test caught every one:
TextCAUGHT middleware not wired into Routes() (no nosniff on any response)CAUGHT base-uri dropped from the invariants (policy sent without it)CAUGHT HSTS gate inverted (absent on an https issuer)
The first matters most. A test of the middleware shows that it is correct; only a test that goes through the router shows that it is reachable. Every existing sign-in page test in this package calls the handler directly, and would have passed with the middleware unwired.
Chapter coverage after this pass
177 of 345. V3 joins V6, V7, V8, V9, V10 and V11. The chapters still unswept are V1 Encoding, V2 Validation, V4 API, V5 File, V12 Secure Communication, V13 Configuration, V14 Data Protection, V15 Secure Coding, V16 Logging and V17 WebRTC. After this pass, the claim that they are unlikely to matter should be treated as untested. V3 was on that list before this pass.
V16 Security Logging and Error Handling: seventeen requirements (21 August 2026)
The second chapter taken off the "relevant to the product, not specific to it" list. For anyone investigating an incident, Signari's log is the main record, and V16 is the chapter about it.
The finding: no last-resort error handler (V16.5.4)
recover() appeared nowhere in the engine. That did not crash the engine,
and went unnoticed, because net/http recovers panics itself: conn.serve
catches, logs, and closes the connection.
What was lost is everything around the panic:
- It was written by Go's
logpackage to stderr in Go's own format, while the engine logs throughslog. So the event an administrator most needs to find was the one entry their log processor could not parse (V16.2.4). - No correlation id, so it could not be tied to the request that caused it, nor to the audit rows for that request (V16.2.1).
- The client got a dropped connection rather than a response. An application sees a transport error, and starts debugging the network.
withRecovery now catches, logs err/method/path/correlation_id/stack
through the configured handler, and answers a generic 500 carrying a reference
code.
Four details are part of the requirement:
The panic value never reaches the client. V16.5.1 forbids exposing "stack traces, queries, secret keys, and tokens", and a pgx error carries the SQL it was running. The caller gets the reference; the log gets the detail.
http.ErrAbortHandler is re-panicked. It is net/http's own signal to
abandon a response silently. Swallowing it would log false panics and answer 500
over a body already on the wire.
A panic after the response started writes nothing more. The status is committed; appending a second body produces a response that parses as neither.
path, not the raw URL. A query string here can hold code, state or
login_hint, and V16.2.5 governs error paths too.
The wiring test
Four mutations were killed by the unit tests. The fifth, removing withRecovery
from Routes(), was killed by none of them, because each built the middleware
chain by hand. They showed that the recovery handler is correct, not that it is
reachable. TestRecoveryIsWiredIntoTheRouter drives a real route through the
real router, using an unhandled panic (a server with no database panics loading
the sign-in page's branding) rather than an injected one.
This is the second time in two days that the difference between correct and reachable has produced a test that nothing else would have caught. Middleware needs a test that goes through the router.
V16.1.1: met by writing the document it asks for
This is the only requirement in this standard met by prose. Nothing was broken and
nothing failed, which is why it went unmet. It is now met by
docs/logging-inventory.md, which documents both layers (diagnostic slog to stderr, audit trail in
core.audit_events), formats, the 54 audit event types, tamper evidence, access
control and retention.
Writing it brought out one fact: retention_class is a classification, not an
expiry. No job deletes audit rows by age; rows are removed only by an erasure
request acting on class. That is now written down.
The rest of V16
| Requirement | Verdict |
|---|---|
| V16.2.1 metadata for investigation | met: correlation id on every request, echoed to the client and stored on audit rows |
| V16.2.2 UTC or explicit offset | met: slog emits RFC 3339 with offset; occurred_at timestamptz |
| V16.2.3 log only to documented sinks | met: stderr and one table, both now inventoried |
| V16.2.4 readable by the log processor | met: logfmt; now true for panics too |
| V16.2.5 sensitive data not logged | met: verified by inspection, including the two call sites that look like exceptions and are not |
| V16.3.1 all authentication attempts | met: login.succeeded and login.failed |
| V16.3.2 failed authorization logged | met: consent denials, impersonation refusals, User-Managed Access (UMA) denials, Admin API scope refusals |
| V16.3.3 bypass attempts | met: passkey counter regression, breached password, Client-Initiated Backchannel Authentication (CIBA) unknown subject, federation refusal |
| V16.3.4 unexpected errors | met, and this is what V16.5.4 fixed |
| V16.4.1 log injection | met: structured key/values throughout, zero fmt.Sprintf inside a log call |
| V16.4.2 protected from modification | met as detectable: hash chain over ciphertext, and migration 0043 removed the ON DELETE SET NULL foreign keys that rewrote past audit rows. Stated this way because it is not a trigger refusing UPDATE |
| V16.4.3 shipped to a separate system | met: the audit trail streams to a SIEM webhook or a syslog collector as it is written (SIGNARI_AUDIT_WEBHOOK_URL, SIGNARI_AUDIT_SYSLOG_ADDR, internal/auditsink), and GET /admin/audit-events reads it back from outside |
| V16.5.1 generic error to the consumer | met, and now enforced on the panic path |
| V16.5.2 graceful degradation | met: 12 explicit fail-closed sites |
| V16.5.3 fails securely, no fail-open | met: repeatedly verified in the protocol reviews |
| V16.5.4 last-resort handler | was not met, fixed in this pass |
Chapter coverage after this pass
194 of 345. V16 joins V3, V6, V7, V8, V9, V10 and V11. Still unswept: V1 Encoding, V2 Validation, V4 API, V5 File, V12 Secure Communication, V13 Configuration, V14 Data Protection, V15 Secure Coding, V17 WebRTC.
Both chapters taken off the "not specific to us" list have produced a defect. The chapters still on that list have not been swept, not cleared.
V4 API and Web Service: sixteen requirements (21 August 2026)
The third chapter off that list, and the third defect. This one is the most serious of the three.
The finding: the origin was checked too late
ASVS V4.4.2 asks that the Origin header be checked "during the initial HTTP
WebSocket handshake". internal/httpapi/rac.go (browser remote access, proxying
a browser to guacd) passes OriginPatterns: nil to coder/websocket, and
that does enforce same origin: authenticateOrigin in v1.8.15
compares Origin's host to the request Host. Verified in the module source
rather than taken from the comment beside it.
It runs too late to protect anything but the stream. The handler's own doc comment sets out its order as a deliberate design:
Text1. a signed-in session who2. the access policy may they be here at all, right now3. the connection's group is this machine theirs to reach4. an audit entry recorded before a single byte moves5. guacd
The origin check is not on that list. It happens inside websocket.Accept, at
step 6: after rac.Dial has opened a connection to the target machine, after a
rac_sessions row, after the audit entry.
A WebSocket handshake carries cookies like any other request, and this endpoint authenticates with the session cookie and nothing else. So a page on another origin can open one against a signed-in victim, and every check above passes, because the victim is entitled to that host. The attacker reads nothing, because the upgrade is refused a moment later. But the connection to the internal machine was made, the session row written and the audit entry recorded, and it all happens again on every reload of their page. Another site could drive connections into the network, and fill the audit log that an incident investigation would search.
This was fixed by moving the check to the top of the handler, before the session is looked up. The library's check stays: the early one protects the side effects, the late one protects the stream, and a later edit that reorders the handler should not be able to open a cross-origin socket by accident.
There were no tests for this handler of any kind. There are now, including one
that points guacdAddr at a listener the test owns, so the test observes whether
the target was dialled, rather than asserting an order.
The smaller one: */+xml served without a charset
V4.1.1 (L1) names */+xml among the types whose Content-Type must state the
character encoding. SAML metadata was served as application/samlmetadata+xml
with none.
RFC 7303 §9.1 explains why this matters: for a +xml media type the HTTP
charset parameter takes precedence over the encoding declaration inside the
document. A consumer applying a default when the header omits it can therefore
disagree with the bytes it was sent, and the document's own
<?xml version="1.0" encoding="UTF-8"?> does not settle it. Both sites now state
it.
The rest of V4
| Requirement | Verdict |
|---|---|
| V4.1.1 Content-Type matches, with charset | one gap, fixed: HTML and JavaScript already stated it; JSON needs none (RFC 8259 defines no charset parameter) |
| V4.1.2 transparent HTTP→HTTPS only for endpoints people use | n/a: the engine does not redirect http to https; Transport Layer Security (TLS) terminates ahead of it |
| V4.1.3 intermediary headers a request cannot override | met, and deliberately: clientIP reads r.RemoteAddr only, never X-Forwarded-For. Forward-auth does read X-Forwarded-Proto/Host/Uri, but firstHeader takes only the first value (the comment names the good, evil injection it exists to stop), and the result only builds a redirect back to Signari's own /proxy/start, whose target is validated |
| V4.1.4 unused HTTP methods blocked | met by construction: every route is registered with a method pattern, so anything else is 405 |
| V4.1.5 per-message signatures | met beyond the requirement: Back-Channel Logout tokens, Shared Signals Security Event Tokens (SETs) and webhook bodies are all signed or MACed (this listed JWT-Secured Authorization Response Mode (JARM) before it was built; it has been since, and its responses are signed too: see signed authorization responses) |
| V4.2.1–V4.2.4 request smuggling, header injection | met by the runtime: Go's net/http rejects conflicting Content-Length/Transfer-Encoding, and rejects CR/LF in header values |
| V4.2.5 over-long outbound URIs and headers | met, November 2026: every client safedial builds refuses a URI or a header field over 8,000 octets before it is sent, RFC 9110 §4.1's figure for a URI (specs/rfc9110.txt:1059-1060), and says which and to where without repeating a value that may be a credential |
| V4.3.1–V4.3.2 GraphQL | n/a: none |
| V4.4.1 WSS | deployment; TLS terminates ahead of the engine |
| V4.4.2 Origin checked at the handshake | was checked too late, fixed |
| V4.4.3–V4.4.4 dedicated WebSocket tokens | n/a as written: the requirement applies "if the application's standard session management cannot be used". Signari's can be, and is, used, and the connection is authorized per-host by policy and group membership on top of it |
Chapter coverage after this pass
210 of 345. V4 joins V3, V6, V7, V8, V9, V10, V11 and V16. Still unswept: V1 Encoding, V2 Validation, V5 File, V12 Secure Communication, V13 Configuration, V14 Data Protection, V15 Secure Coding, V17 WebRTC.
Three chapters taken off the "relevant to the product, not specific to it" list have produced three defects: a missing header set, a missing panic handler, and an origin check placed after the side effects it was meant to prevent.
V14 Data Protection and V17 WebRTC (21 August 2026)
V17: twelve requirements, none applicable
V17 is TURN servers, DTLS-SRTP media and WebRTC signalling. A search for
webrtc|turn server|stun|dtls|srtp|RTCPeerConnection across the engine returns
seven matches, and all seven are false positives: one is a comment in
securityheaders.go quoting this standard's own chapter list, and six are
MethodSelfSignedTLSClientAuth, in which "SignedTLSClientAuth" contains the
letters dtls.
The search was needed because browser remote access does exist here
(internal/rac), and it could have used WebRTC. It does not: it proxies the
Guacamole protocol over a WebSocket to guacd, which is why V4.4 applied and V17
does not.
Twelve requirements closed with evidence.
V14: the finding was in error pages
V14.3.2 asks for Cache-Control: no-store so sensitive data is not cached by
browsers, and V3.4 asks for a Content-Security-Policy on every response. Both are
satisfied by renderPage and renderLogin, which is how most HTML leaves
Signari.
Six responses did not go through either. A scan of every site setting a
text/html Content-Type found:
| Handler | Policy | no-store |
|---|---|---|
handleConnectedApps | none | none |
writeAuthzError | none | none |
samlRefuse | none | none |
federationError | none | yes |
renderLogoutConfirmation | none | yes |
renderAuthzFailure | none | yes |
Every one is an error or a notice page. None was omitted deliberately: they are
pages written in the middle of handling a failure. Three of them render text the
caller supplied (a SAML refusal reason, an OAuth error description), and
html/template escapes it, so a policy is the second line of defence rather than
the first. It still matters when the first one has a bug.
handleConnectedApps is more than defence in depth. It lists every application
holding access to a person's account and was sent with no cache header at all,
so any intermediary or the browser's own cache could store it. That is a V14.3.2
gap on a page that lists who can act for the person.
All six now call htmlPageHeaders.
The pages that must not use the helper
Four pages exist to leave this origin: the SAML POST binding, form_post,
WS-Federation and Front-Channel Logout. htmlPageHeaders sets form-action 'self'
and no script-src, which would stop each from doing the one thing it is for.
So they do not use it, and renderBare takes their policy as a parameter. It used
to call the helper itself, after each caller had set its own policy, and so
replaced all four: from 22 August to 2 November 2026 those pages rendered forms no
browser would submit and frames none would load, and every test passed, because
every test read the markup. The SAML page had also lost its auto-submit when it
moved into a template, and <noscript> hid its button from anybody with scripting
on. A parameter leaves nothing to overwrite.
The three that post carry no form-action at all. Naming the application's origin
would be stopped the moment its callback redirected anywhere else of its own.
TestABridgePageIsAllowedToDoItsOneJob reads each page as a browser does: its
script has to be one its policy lets run.
A redirect after a form is sent as a page
form-action 'self' on the sign-in pages stops injected markup from posting a
password somewhere else. Chrome applies that directive to every redirect in the
navigation a form starts, not only to the form's own target, so the walk from a
password to an application (POST /login, 303 to the authorization endpoint,
303 to the application) was stopped at its last hop. The person stayed on the
sign-in page with the right password and no error. Chrome 156 does this; an HTTP
client does not, which is why no test here saw it.
Listing every destination in the policy would make every page responsible for
knowing where the journey might end. Removing the directive would give up what it
is for. So the navigation is ended instead. When a browser submits a form on a
page from this origin, withFormRedirects answers a redirect with 200 and a
page that refreshes to the same place, keeping any cookies set with it. From
there the browser is on an ordinary navigation, which the directive has no say in.
The page's own policy lets nothing run.
It is recognised by Sec-Fetch-Site: same-origin with Sec-Fetch-Dest: document,
which a page cannot set. A form on an application's page, an API client and a
script's fetch keep their redirects. So a reverse proxy in front of the engine
must pass Sec-Fetch-* through: strip them and sign-in stops at the same place.
interop/form-redirect-e2e.mjs drives the real forms in a real browser and passes
only if it arrives at the application.
The reverse journey has its own rule. The session cookie is SameSite=Lax, so it
stays behind on a form posted from another site, and a person with a live session
read as nobody and was asked to sign in again. /saml/sso and the authorization
endpoint answer such a POST, recognised by Sec-Fetch-Site: cross-site with
Sec-Fetch-Dest: document, with a 303 to the same request as a GET, which
brings the cookie. /wsfed does the same for any POST without a form token of
Signari's.
Pinned structurally
TestEveryHTMLResponseCarriesAPolicyAndNoStore scans the package source rather
than rendering pages. That is deliberate: the defect to catch is a new page
written without the headers, and a test that renders each page has to know how to
reach each page, which is why this one was missed.
samlRefuse is reachable only by a malformed SAML request of a particular shape,
and nothing had ever sent one.
The rest of V14
| Requirement | Verdict |
|---|---|
| V14.1.1 / V14.1.2 data classified, protection documented | partial: the security inventories classifies the data and says how each class is kept, and every sealed column is classified by test, but it lists classes and not every field, which is what the requirement says |
| V14.2.1 no sensitive data in URLs | partial, deliberately: invitation and password-reset links carry a token in the query string, which is how an emailed link works. Mitigated by single use, short expiry, and the Referrer-Policy: no-referrer added in the V3 pass |
| V14.2.2 not cached in server components | met: no-store now on every HTML response and every token response |
| V14.2.3 not sent to untrusted parties | met: no analytics, trackers or third-party scripts; the only external script permitted is a CAPTCHA provider an administrator configured, and only when one is on the page |
| V14.2.5 web cache deception | met: no static-file handler that could serve a different valid file for a non-existent path |
| V14.2.6 minimum data returned | met: userinfo returns only granted scopes' claims |
| V14.2.7 retention classification | partial: classified, not time-expired |
| V14.2.8 file metadata | n/a: nobody can upload a file |
| V14.3.1 client storage cleared | met by construction: localStorage, sessionStorage and IndexedDB appear zero times in anything Signari serves |
| V14.3.2 anti-caching headers | six gaps, fixed |
| V14.3.3 no sensitive data in browser storage | met: nothing is stored client-side but the session cookie |
Chapter coverage after this pass
235 of 345. V14 and V17 join V3, V4, V6, V7, V8, V9, V10, V11 and V16. Still unswept: V1 Encoding, V2 Validation, V5 File, V12 Secure Communication, V13 Configuration, V15 Secure Coding.
Four chapters taken off the dismissed list, four defects.
V1 Encoding and Sanitization: thirty requirements, no defects (21 August 2026)
The first chapter off that list that produced no defect. It is recorded in full anyway, because a clean result means something only if what was checked is written down.
V1 is the injection chapter, and each injection class here was addressed where it
arises: SQL in the store layer, XML in
the SAML reviews, server-side request forgery (SSRF) in internal/safedial, output encoding by using
html/template everywhere instead of building HTML.
Checked, with the evidence
| Requirement | Verdict |
|---|---|
| V1.1.1 decode once, when expected | met: the only unescaping is parseBasic, which decodes client credentials once, in the Basic-auth path only, because RFC 6749 §2.3.1 form-urlencodes them before base64. Nothing decodes a value a second time |
| V1.1.2 encode at the interpreter | met: html/template escapes by context at render |
| V1.2.1 context-correct output encoding | met: every page renders through html/template; two sites bypass it and both are examined below |
| V1.2.2 safe URL protocols | met: brand logo and support URLs must begin https://, enforced in Brand.Validate, called from SaveBrand, which is the only write path. html/template would neutralise javascript: in an href regardless, so this is two gates |
| V1.2.3 JSON/JavaScript encoding | met: encoding/json throughout, never string-built |
| V1.2.4 SQL injection | met: every query is parameterized. A scan for Query/Exec/QueryRow combined with Sprintf or string concatenation returns one hit, and it is a URL being built, not SQL |
| V1.2.5 OS command injection | met: exactly one exec.CommandContext in the engine (kadmin, for Kerberos principal sync). Arguments are a slice, so no shell is involved, and every value in it is an administrator's configuration: the Kerberos realm, principal, keytab path, and the literal query list_principals. No input from a person signing in reaches it |
| V1.2.6 LDAP injection | met. This one needed checking, because the engine both serves LDAP and consumes it. The sync filter is either an administrator-configured string or one of three constants, and the base DN is configuration. No value from a person signing in is interpolated into a filter or a DN anywhere, which is why there is no EscapeFilter call to find |
| V1.2.7 XPath injection | n/a: no XPath |
| V1.2.8 LaTeX | n/a |
| V1.2.9 regex metacharacters | met vacuously and verifiably: zero regular expressions are compiled from a variable. Every regexp.MustCompile in the engine takes a literal |
| V1.2.10 CSV/formula injection | n/a: the audit export is JSON |
| V1.3.1 HTML sanitization | n/a: no rich-text input |
V1.3.2 no eval | n/a: Go, and no dynamic evaluation |
| V1.3.3 sanitize for dangerous contexts | met: see V1.3.11 |
| V1.3.4 SVG sanitization | met by construction, see below |
| V1.3.5 scriptable templates | n/a: templates are compiled in, never built from input |
| V1.3.6 SSRF | met: internal/safedial checks at dial time, including IPv4-mapped IPv6 |
| V1.3.7 template injection | met: no template is constructed from untrusted input |
| V1.3.8 JNDI | n/a |
| V1.3.9 memcache | n/a |
| V1.3.10 format strings | met: no format string comes from input |
| V1.3.11 SMTP injection | met, deliberately: sanitiseHeader strips CR and LF from From and To, the subject is RFC 2047 Q-encoded after newline stripping, and the comment names the attack ("an attacker-chosen display name could otherwise append Bcc:"). Go's net/smtp independently rejects CR/LF in Rcpt |
| V1.3.12 ReDoS | met: no regex is built from input, and the literals are simple |
| V1.4.1–V1.4.3 memory safety | n/a: Go, no unsafe, no cgo in the engine |
| V1.5.1 XXE | met: scanForUnsafeConstructs walks the raw token stream and refuses DOCTYPE declarations and comments before any parser touches the document, then dec.Entity = nil and dec.Strict = true are set explicitly with a comment saying they restate a safe default so that changing it is a deliberate act. Refusing comments is the defence against signature wrapping |
| V1.5.2 safe deserialization | met: JSON into typed structs; no gob, no XML into any |
| V1.5.3 consistent parsers | met: one JSON library, one XML path, one URL parser |
The two places escaping is bypassed, and why both are safe
internal/httpapi/enrol.go is the only file that constructs pre-trusted markup:
template.HTML(qrSVG): the TOTP enrolment QR code. The concern is that
the code encodes an otpauth:// URI containing the person's own email address, so an
address like </svg><script> would be attacker-controlled content going into the
page unescaped.
It cannot be. qr.Code.SVG emits integers only: %d for the viewBox, the
rect, and every path segment. The payload lives in the QR modules, which are
geometry, not text. No caller-supplied string reaches the markup at any point.
So it is safe by construction rather than by escaping.
template.URL(uri): the same otpauth:// URI as a link. This bypasses
html/template's URL protocol filtering on purpose (otpauth: is not on its
safe list), but the value is still HTML-attribute escaped, so it cannot
break out of the attribute. The scheme is a constant in Signari's own code.
Chapter coverage after this pass
265 of 345. V1 joins V3, V4, V6, V7, V8, V9, V10, V11, V14, V16 and V17. Still unswept: V2 Validation, V5 File, V12 Secure Communication, V13 Configuration, V15 Secure Coding: 80 requirements.
Five chapters off that list, four defects. The table above shows why this fifth chapter is clean.
V12 Secure Communication and V13 Configuration (21 August 2026)
Thirty-three requirements across two chapters. No defects, the second clean result in a row, and one document written because a requirement asked for one.
V12, and the cipher suites
| Requirement | Verdict |
|---|---|
| V12.1.1 current TLS versions only | met: every tls.Config in the engine sets MinVersion: tls.VersionTLS12, and Go negotiates 1.3 in preference where the peer supports it |
| V12.1.2 recommended suites, forward secrecy at L3 | met, with no change needed (see below) |
| V12.1.3 mTLS client certificates validated before use | met: SetClientCAs, and a nil pool means tls_client_auth is refused rather than accepted unverified |
| V12.1.4 OCSP stapling | L3, deployment concern; not configured by the engine |
| V12.1.5 Encrypted Client Hello | met when keys are given, November 2026: SIGNARI_TLS_ECH_KEYS and signari ech new (Encrypted Client Hello); the listener is then TLS 1.3 only. Publishing the configuration in DNS is the deployment's |
| V12.2.1 TLS to external services, no fallback | met: see SMTP below |
| V12.2.2 publicly trusted certificates | deployment |
| V12.3.1 encrypted in and out, no insecure fallback | met |
| V12.3.2 TLS clients validate certificates | met: one InsecureSkipVerify in the entire tree, in the proxycheck diagnostic, opt-in via a flag, and when it is on the report's first line reads "DISABLED by -insecure; nothing below says anything about TLS" |
| V12.3.3 / V12.3.4 internal service TLS | met where applicable; directory/ldapsource pins RootCAs and its comment records that InsecureSkipVerify is deliberately absent |
| V12.3.5 mutual authentication between services | met for the Admin API, November 2026, on request: SIGNARI_ADMIN_CLIENT_CA has the Admin API listener ask for a certificate in the handshake, and the console, the CLI and the Terraform provider present one with SIGNARI_ADMIN_CLIENT_CERT. Off by default, as it needs an authority to issue them. The database connection has sslmode and client certificates of its own, through the data source name (DSN). Webhooks and outbound calls to third parties are authenticated at the application layer |
V12.1.2 needs explaining. The L3 requirement is "must only support cipher suites
which provide forward secrecy", and no tls.Config here sets CipherSuites at
all. That could suggest Signari inherits whatever Go offers, including RSA key
exchange. It does not, as the Go source shows.
crypto/tls/defaults.go in Go 1.26.6:
Gofunc defaultCipherSuites(aesGCMPreferred bool) []uint16 { cipherSuites := supportedCipherSuites(aesGCMPreferred) return slices.DeleteFunc(cipherSuites, func(c uint16) bool { return disabledCipherSuites[c] || tlsrsakex.Value() != "1" && rsaKexCiphers[c] || tls3des.Value() != "1" && tdesCiphers[c] })}
RSA key exchange and 3DES are removed from the default list unless a GODEBUG
setting puts them back. Everything that survives is ECDHE, which is forward
secret. So the requirement is met, and setting CipherSuites explicitly would
make things worse: it would freeze today's list and miss whatever Go removes
next.
One caveat recorded for the administrator: GODEBUG=tlsrsakex=1 re-enables RSA key
exchange process-wide and would undo this.
SMTP does not fall back. The usual downgrade attack is a client that checks
whether STARTTLS is advertised, finds it stripped by an active attacker, and
continues in cleartext, sending AUTH PLAIN over the wire. Signari's client
refuses:
"does not offer STARTTLS; refusing to send credentials or account links over an unencrypted connection"
V13: closed by construction more often than by a check
| Requirement | Verdict |
|---|---|
| V13.1.1 communication needs documented | was not; now docs/egress-inventory.md |
| V13.1.2 / V13.1.3 connection limits and resource strategy documented | met, November 2026: the security inventories, the pools among them |
| V13.1.4 secret rotation schedule documented | partial: key rotation is implemented and documented; there is no written rotation schedule for the root key or admin tokens |
| V13.2.1 backend auth: individual, short-term, not shared | met for the Admin API: tokens are per-name rows, SHA-256 hashed, scoped, expiring, revocable, with last_used_at. The break-glass environment token is the exception the requirement warns about, and it is handled as one: constant-time compared, ScopeAll, and logged at Warn on every use with the reason written beside it |
| V13.2.2 least privilege | met: signari_admin holds no grants on core, reading 15 views in core_v1 |
| V13.2.3 no default credentials | met: no default admin token exists; SIGNARI_ROOT_KEY is required rather than generated, because "a generated-on-boot root key would silently" produce a different one per instance |
| V13.2.4 / V13.2.5 outbound allowlist | partial: safedial is an address-level denylist; the effective allowlist is registration. See the egress inventory |
| V13.3.1 secrets management solution | partial: the root key arrives base64 in SIGNARI_ROOT_KEY, or in the file SIGNARI_ROOT_KEY_FILE names, not from a vault or hardware security module (HSM). An administrator can inject it from one, which is the usual pattern, but the engine has no direct integration. doctor flags a short admin token as Critical |
| V13.3.2 least privilege on secrets | met |
| V13.3.3 "all cryptographic operations are performed using an isolated security module" (specs/asvs-5.0.0.txt:4051) | L3, partial, November 2026: signing keys can be made and kept in a PKCS#11 module and sign there (signing keys in a hardware module). "All" is not met: the root key's sealing, the credential-request decryption key and every hash are done in this process |
| V13.3.4 rotation schedule | L3, not done |
| V13.4.1 no source-control metadata served | met by construction: no http.FileServer, no http.Dir, nothing serves a filesystem path. The single static asset is //go:embed-ed and served by name |
| V13.4.2 debug modes disabled | met: no pprof, no debug flag in the serving path |
| V13.4.3 no directory listings | met by construction, same reason as V13.4.1 |
| V13.4.4 TRACE unsupported | met by construction: every route is registered with an explicit method pattern, so TRACE is 405 everywhere |
| V13.4.5 monitoring endpoints not exposed | met: /healthz returns liveness only. It also used to return the signing algorithms, and that was not a disclosure, because the same list comes from the same call that fills id_token_signing_alg_values_supported in the public discovery document. It was removed anyway, on the narrower ground that a liveness endpoint is the one most likely to be exposed by infrastructure not thinking about OIDC, so it should describe the process and never the deployment. Pinned by TestHealthReturnsLivenessAndNothingElse |
| V13.4.6 no detailed version information | met: no version string is served |
| V13.4.7 extension allowlist on the web tier | n/a: there is no file-serving tier to allowlist |
Chapter coverage after this pass
298 of 345. Still unswept: V2 Validation (13) and V5 File (13) and V15 Secure Coding (21): 47 requirements.
Seven chapters off that list, four defects. The last three chapters each came back clean.
V2, V5 and V15: the last three chapters (21 August 2026)
Forty-seven requirements. ASVS 5.0.0 is now swept end to end: 345 of 345.
The finding: the duplicate-parameter rule was enforced at one endpoint
RFC 6749 §3.1 ("Request and response parameters MUST NOT be included more than once") is also ASVS V15.3.7's parameter-pollution defence.
The reason was already written out at the PAR endpoint:
"The tempting behaviour — take the first, ignore the rest — is parameter pollution: whether the first or the last wins differs between servers, proxies and libraries, so a request carrying two
redirect_urivalues can be validated against one and acted on with the other."
It was applied at PAR and nowhere else. The authorization endpoint and the
token endpoint had no check, though they are the two that issue a code and a
token, and the two that sit behind a browser and a proxy. A duplicate
redirect_uri matters most at the endpoint that redirects, and PAR does not
redirect.
The mutation shows it. With the guard removed, a request carrying
redirect_uri twice is answered:
TextLocation: https://rp.test/cb?error=invalid_request&...&iss=https://token-test.example
Signari took the first value and redirected to it. A proxy that read the
last would have seen evil.test. The attack depends on that disagreement.
The same guard had the opposite flaw
PAR refused every repeat, including resource, which RFC 8707 §2 explicitly
permits more than once and which Signari reads as a list everywhere else
(q["resource"], capped at eight). So a conformant client using two resource
indicators through PAR was refused.
The rule is now "at most once, unless a specification says otherwise", with the
exceptions named (resource, RFC 8707 §2; audience, RFC 8693 §2.1) rather than
inferred from whether the code happens to read a list.
Allowing the repeat exposed a second problem: PAR stored map[string]string and
kept v[0], so a repeated parameter could not survive a push at all. Relaxing
the guard without fixing that would have replaced an explicit refusal with the
unreported loss of an audience restriction the client asked for, which is worse
than the refusal. Storage and replay are now multi-valued end to end.
V5 File Handling: thirteen requirements, none applicable
multipart, FormFile and ParseMultipartForm appear zero times outside
tests. There is no upload surface, so V5.2 through
V5.4 have nothing to attach to. The files the engine reads, such as certificate
bundles and the GeoIP database, are paths an administrator gives on the command
line. V5.3.2 addresses only names that a person using the application submits.
V2 Validation and Business Logic
| Requirement | Verdict |
|---|---|
| V2.1.1–V2.1.3 documented validation rules and limits | partial: validation is enforced and commented at each site; there is no single document of every rule and limit |
| V2.2.1 positive validation | met: scopes, response types, grant types, redirect URIs, client auth methods and stage names are all closed sets checked against allow lists |
| V2.2.2 validation at a trusted service layer | met: no security decision depends on client-side checks; the sign-in form needs no JavaScript at all |
| V2.2.3 related items reasonable together | met: e.g. code_challenge_method without code_challenge is refused, prompt=none with other values is refused (§3.1.2.1) |
| V2.3.1 steps in order, none skipped | met: the flow engine refuses at parse a file that could reach a session without proving anything, or that changes a credential before checking one. internal/flow/safety_test.go checks it by exhaustive enumeration |
| V2.3.2 documented business limits | met: device-code attempts, signup rate, registration rate, call-chain length, resource-indicator count |
| V2.3.3 transactional | met: pgx.Tx around the code-to-token exchange; a partial redemption cannot leave a code spent and no token issued |
| V2.3.4 locking on limited resources | met: single-use codes, c_nonce, invitations and request_uri handles are all claimed with UPDATE ... WHERE used_at IS NULL RETURNING, which is atomic. A concurrency test asserts exactly one credential is minted under a nonce race. WebAuthn challenges are spent with INSERT ... ON CONFLICT DO NOTHING RETURNING on the first attempt to finish their ceremony. Until October 2026 they were not: the challenge travels in a signed cookie, the handler cleared that cookie, and the same cookie and assertion presented again opened a second session. The end-to-end passkey test found it (migration 0141) |
| V2.3.5 approval by more than one person for high-value flows | met, November 2026: an organisation's approvals_required makes an erasure or an org-owner grant wait for somebody else, who approves it by having it replayed as theirs; relaxing the rule waits too (two-person approvals) |
| V2.4.1 anti-automation | met: per-address and per-account limits, adaptive CAPTCHA, token buckets per endpoint with separate buckets so tuning one does not widen another |
| V2.4.2 realistic human timing | L3, not implemented |
V15 Secure Coding and Architecture
| Requirement | Verdict |
|---|---|
| V15.1.1 remediation time frames documented | was not; now in docs/dependencies.md, keyed on govulncheck reachability rather than CVSS alone |
| V15.1.2 dependency inventory | was not; now docs/dependencies.md. Thirteen direct dependencies, fifty-seven modules total |
| V15.1.3 resource-demanding functionality documented | partial: Argon2id is bounded by a concurrency semaphore, outbound work is queued through the outbox; not documented per function |
| V15.1.4 risky components identified | now named: go-jose, etree+goxmldsig, gokrb5, and Signari's own radius and ldapd, which parse hostile input from the network |
| V15.1.5 dangerous functionality identified | as above |
| V15.2.1 no components past their remediation window | met: govulncheck reports nothing affecting a called symbol |
| V15.2.2 availability defences | met: semaphores, buckets, capped retries, parked deliveries |
| V15.2.3 no test or sample code in production | met: the test harnesses are separate main packages, not routes; no sample endpoints are registered |
| V15.2.4 dependency confusion | met: no GOPRIVATE, no replace, every module pinned in go.sum against the public checksum database |
| V15.2.5 isolation around risky components | partial: the XML path refuses hostile constructs before either XML library sees them; there is no sandboxing |
| V15.3.1 minimum fields returned | met: claims released strictly by granted scope, and the same rule is applied deliberately at both userinfo and the ID token |
| V15.3.2 do not follow redirects on backend calls | met: refused outright where a credential or signed token is sent ("would forward the user's password to wherever the redirect pointed"), bounded at three hops with a plaintext-downgrade refusal where following is the intended function |
| V15.3.3 mass assignment | met: every request is decoded into a typed struct with named fields; no map is written straight to a row |
| V15.3.4 original IP from trusted fields | met, deliberately: clientIP reads r.RemoteAddr and never X-Forwarded-For. The trade is recorded: behind a proxy this is the proxy's address, which is why the sensitive limits are per-account as well as per-address |
| V15.3.5 correct types, strict comparison | met: Go, and secrets compare with subtle.ConstantTimeCompare |
| V15.3.6 prototype pollution | n/a: the only JavaScript served is a passkey helper and the Guacamole client |
| V15.3.7 HTTP parameter pollution | was enforced at one endpoint of three, fixed. Also: zero uses of r.FormValue, which merges query and body; everything reads r.PostFormValue or an explicit accessor |
| V15.4.1–V15.4.4 safe concurrency | met where it applies: shared state is behind mutexes or atomics, and the resource claims in V2.3.4 are single atomic statements rather than check-then-act. The Go race detector runs clean |
ASVS 5.0.0, complete
345 of 345. Ten chapters off the list this sweep started from, six defects:
| Chapter | Defect |
|---|---|
| V3 Web Frontend | five browser security headers absent, two at Level 1 |
| V4 API | WebSocket origin checked after guacd was already dialled |
| V14 Data Protection | six HTML responses with no policy, three with no cache header |
| V16 Logging | no last-resort error handler anywhere |
| V15 Secure Coding | duplicate-parameter rule enforced at one endpoint of three |
| — | and the RFC 8707 half of the same rule, refusing a conformant request |
Four chapters came back clean: V1, V2, V5, V12/V13.
The original judgement that these chapters were "relevant to the product, not specific to it, and not where this engine's risk concentrates" was wrong in six places. None of the six was a critical, exploitable break. They were defects of omission, the kind a requirement-by-requirement sweep finds.
A correction to the V3 sweep: V3.5.2 (21 August 2026)
The V3 table above marked V3.5.1 through V3.5.3 as met on the strength of "CSRF
tokens on every state-changing form". A later sweep, asking which
cookie-authenticated POSTs call checkCSRF, found that sixteen of
twenty do and four do not, and the four are the WebAuthn ceremony endpoints:
Text/account/passkeys/begin /login/passkey/begin/account/passkeys/finish /login/passkey/finish
Three mechanisms were standing in for the token, and two of them are sound:
SameSite=Lax: the session cookie is not sent on a cross-site POST at all, so such a request arrives unauthenticated.- WebAuthn's own origin binding: a page on another origin cannot produce a credential or an assertion for Signari's relying party ID; the browser enforces it.
corsNonefor these paths: a cross-originfetchgets noAccess-Control-Allow-Originand is refused at preflight.
The third was bypassable, which is what V3.5.2 is about. The requirement asks
that functionality defended by preflight not be callable by a request that
triggers no preflight. Content-Type: application/json forces one, but
text/plain is CORS-safelisted, a plain HTML <form enctype="text/plain">
can send it, and a form body can be crafted to be valid JSON. The handlers
decoded whatever arrived without ever inspecting the content type, so the
preflight they relied on was optional.
It was not exploitable as things stood: SameSite=Lax withholds the cookie, and
the mutation confirms it. With the new check removed, the request reaches the
handler and is answered 401 login_required rather than being refused earlier.
So one mechanism held, where the rest of this package has two or three.
This was fixed with requireJSONContentType on all four. Signari's own
/passkey.js already sends application/json, so nothing legitimate changes.
A CSRF token was not added instead. It would require the client script to carry one, and the browser already binds the ceremony to the origin in a way a token cannot improve on: an attacker who could submit the form still cannot produce an assertion for Signari's RP ID. Making the preflight non-bypassable restores the missing layer rather than adding a fourth.
The earlier verdict, "CSRF tokens on every state-changing form", was written from the pattern rather than from the call sites. Counting them took one script and found four exceptions.
The highest-risk controls re-checked after the page rework (24 August 2026)
ASVS 5.0.0 had been swept end to end (345 of 345) before the theming and translation rework landed. This check read the highest-risk controls again in the code after the rework, because a control that was present when swept can be dropped by a later refactor of the pages and the engine's wiring. Each was read again, not taken from the earlier tally.
The controls most at risk from the page/server rework: all held
- V3.4 browser security headers.
withSecurityHeaderssetsX-Content-Type-Options: nosniff(V3.4.4, L1),Referrer-Policy: no-referrer(V3.4.5), andStrict-Transport-Security(V3.4.1), and it is wired into the live chain:Routes()returnswithCorrelation(withRecovery(withSecurityHeaders(withCORS(mux)))), so every response carries them regardless of which handler ran. Survived the rework. - V3.4.3 CSP invariants.
setCSPappendsbase-uri 'none'; object-src 'none'to every policy, andhtmlPageHeadersgives every directly-written HTML response a CSP +Cache-Control: no-store+ framing refusal. Theform_postbridge keeps its per-response nonce. Intact. - V6/sign-in CSRF.
POST /loginisrateLimitedLogin, which callscheckCSRF(r)before the rate limiter (so a forged cross-site post cannot spend a victim's rate budget), andrenderLoginStatusmints the token into the form. The gate is in the caller, nothandleLoginPost, verified after a false alarm from reading the inner function alone. Survived the page externalization; the theme validator additionally refuses any override that drops the CSRF field.
Core security standards re-confirmed in current code
- NIST SP 800-63B-4 §3.1.1.2: password floor 15 (revision 4's raised number), composition rules refused (SHALL NOT), both cited to revision 4.
- RFC 9700 §2 (checked earlier the same day): PKCE S256 + downgrade biconditional, exact redirect matching, refresh rotation with reuse revocation, ROPC refused, CORS excluded from the authorization endpoint by allow-list.
- FAPI 2.0 (checked earlier the same day):
codeTTL = 60s, 10s clock-skew bounds, key-strength floors, sender-constraining viacnf. - The identity-provider vulnerabilities published in 2026, replayed against Signari's code as adversarial tests rather than read as a list. None applies, and in every case the reason is structural (a mechanism Signari does not have, or one whose unsafe shape cannot be represented) rather than a patch it happened to carry.
Verdict: the ASVS controls most exposed to the recent rework are confirmed present in current code, and the four Aug-2026 security standards (ASVS 5.0.0, NIST 800-63B-4, RFC 9700, FAPI 2.0) were re-verified against the code and the standards' text of 24 August 2026. That check found no defect.