[M-8] Dependency & transport hardening: jose advisories, OCSP nonce missing, no HSTS, Swagger UI from public CDN #20

Closed
opened 2026-11-14 18:28:49 +01:00 by amiryahaya · 0 comments
Owner

Finding

jose 1.11.12 has open advisories (ECDSA paths here unaffected — verify after bump). OCSP responses carry no nonce (replay of a captured good valid for 1h). Caddy sets XFO/nosniff but no Strict-Transport-Security. Swagger UI loads scripts from cdn.jsdelivr.net.

Evidence

  • mix.lock — jose 1.11.12
  • lib/mdid_ws/cert_management/ocsp_responder.ex:64-79, 199-204, 21
  • Caddyfile:28-37
  • lib/mdid_ws_web/controllers/open_api_controller.ex:29, 38

Impact

Upgrade obligation; OCSP replay window; TLS downgrade window; supply-chain/CSP risk on the API docs page.

Fix

  • Bump jose to ≥1.11.13
  • Echo the requester's nonce extension in OCSP responses
  • Add HSTS in Caddy for the prod path
  • Vendor the swagger-ui assets locally

Line numbers refer to the initial import commit 282cb11. Source: comprehensive audit, 2026-11-12 (first review of this codebase).

## Finding jose 1.11.12 has open advisories (ECDSA paths here unaffected — verify after bump). OCSP responses carry no nonce (replay of a captured `good` valid for 1h). Caddy sets XFO/nosniff but no Strict-Transport-Security. Swagger UI loads scripts from cdn.jsdelivr.net. ## Evidence - `mix.lock` — jose 1.11.12 - `lib/mdid_ws/cert_management/ocsp_responder.ex:64-79, 199-204, 21` - `Caddyfile:28-37` - `lib/mdid_ws_web/controllers/open_api_controller.ex:29, 38` ## Impact Upgrade obligation; OCSP replay window; TLS downgrade window; supply-chain/CSP risk on the API docs page. ## Fix - [ ] Bump jose to ≥1.11.13 - [ ] Echo the requester's nonce extension in OCSP responses - [ ] Add HSTS in Caddy for the prod path - [ ] Vendor the swagger-ui assets locally _Line numbers refer to the initial import commit `282cb11`. Source: comprehensive audit, 2026-11-12 (first review of this codebase)._
Sign in to join this conversation.
No description provided.