Skip to content

fix(security): remediate security-review-2026-12 findings and Sept re… - #48

Merged
albankora merged 3 commits into
mainfrom
fix/security-review-2026-12-remediation
Dec 6, 2026
Merged

albankora merged 3 commits into
mainfrom
fix/security-review-2026-12-remediation

Conversation

@albankora

Copy link
Copy Markdown
Contributor

…siduals

Closes all in-repo items from docs/compliance/security-review-2026-12.md (Priorities 0-2) and the residual findings from security-review-2026-09.md:

  • Auth: reset-token leak/enumeration, social token verification, SAML XML signature/XXE/XSW hardening, cross-tenant authz, RBAC org-policy scoping, token blacklist wiring, realm JWT separation, session fixation
  • App: error-detail redaction, audit mount order, signed-cookie decoding, pool error handler, session backends, secrets validation, /metrics gating, GraphQL complexity/persisted-query bypass, worker shutdown, CSRF origin checks + per-form synchronizer tokens, HPP body ordering
  • Business: webhook fail-closed, server-side pricing, safeFetch SSRF guard, checkout/webhook/SSO IDOR scoping, OIDC state/nonce/PKCE/JWKS, encrypted SSO secrets, order-tracking PII projection, EJS XSS sinks, payment adapter amount/signature fixes
  • Infra: AWS/Azure/GCP singleton workers + cron split, SQS enforceSSL, WAF/Armor rule gaps, private networking (Azure PG, GCP peering), Front Door Private Link path, DB server-cert verification via POSTGRES_SSL_CA, media origin support (MEDIA_BASE_URL), Docker/Ansible hardening, seed-filter wiring, ALB CloudFront prefix-list option

Alban and others added 3 commits December 5, 2026 19:16
…siduals

Closes all in-repo items from docs/compliance/security-review-2026-12.md
(Priorities 0-2) and the residual findings from security-review-2026-09.md:

- Auth: reset-token leak/enumeration, social token verification, SAML XML
  signature/XXE/XSW hardening, cross-tenant authz, RBAC org-policy scoping,
  token blacklist wiring, realm JWT separation, session fixation
- App: error-detail redaction, audit mount order, signed-cookie decoding,
  pool error handler, session backends, secrets validation, /metrics
  gating, GraphQL complexity/persisted-query bypass, worker shutdown,
  CSRF origin checks + per-form synchronizer tokens, HPP body ordering
- Business: webhook fail-closed, server-side pricing, safeFetch SSRF
  guard, checkout/webhook/SSO IDOR scoping, OIDC state/nonce/PKCE/JWKS,
  encrypted SSO secrets, order-tracking PII projection, EJS XSS sinks,
  payment adapter amount/signature fixes
- Infra: AWS/Azure/GCP singleton workers + cron split, SQS enforceSSL,
  WAF/Armor rule gaps, private networking (Azure PG, GCP peering),
  Front Door Private Link path, DB server-cert verification via
  POSTGRES_SSL_CA, media origin support (MEDIA_BASE_URL), Docker/Ansible
  hardening, seed-filter wiring, ALB CloudFront prefix-list option

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…nt test client

- docs/generated/openapi.json was stale after the security-review route and
  env changes, failing the docs-check CI job
- createTestClient now sends Origin + Sec-Fetch-Site: same-origin so
  cookie-authenticated POSTs in integration tests pass the new CSRF
  origin/synchronizer-token layers, matching real browser form posts

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
- hpp: dedupe only urlencoded bodies; JSON arrays were flattened to
  scalars causing mass 400/500s
- basket: mount optionalCustomerAuth so Bearer-authed baskets bind
  customerId (fixes checkout.forbidden 403s)
- agentic-checkout: propagate guestSessionId so ACP session-bound
  baskets pass the new ownership check
- safeFetch: SAFE_FETCH_ALLOWED_PRIVATE_HOSTS env allowlist for
  private-network targets (dev/CI self-fetch)
- identity: SOCIAL_VERIFY_STUB test bypass for provider token
  verification (never honored in production)
- seeds: bind TEST_CHECKOUT_ID session to the test customer
- tests: align int suites with hardened behavior — fresh-customer
  baskets, pending-approval 201s, auth headers, subtotalCents fields

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@albankora
albankora merged commit 0c40028 into main Dec 6, 2026
5 checks passed
@albankora
albankora deleted the fix/security-review-2026-12-remediation branch December 6, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant