Commit Graph

16 Commits

Author SHA1 Message Date
wmantly cff816fa06 Address CodeQL findings on the OIDC auth flow
- Open redirect / client-side XSS (app-base.js): the post-login `redirect`
  read from the URL fragment was assigned straight to window.location. Add a
  same-origin guard (safeInternalPath) that rejects absolute URLs,
  protocol-relative "//host"/"/\\host", and scheme targets like
  "javascript:". Apply it in consumeTokenFragment and logInRedirect.
- Server-side defense in depth: sanitize `redirect` when storing OidcState
  and when building the callback fragment (utils/safe_redirect.js, shared +
  unit-tested).
- Missing rate limiting: throttle the unauthenticated auth endpoints
  (/login, /oidc/start, /oidc/callback) with express-rate-limit (60/IP/15m).
  Set `trust proxy: 1` so req.ip reflects the real client behind OpenResty.

Adds test/unit/safe_redirect.test.js; unit suite 77 pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-10 13:22:12 -04:00
wmantly d944ca6957 Cleaned up file layout 2025-12-31 15:57:33 -05:00
wmantly 84db245f4a fixed issue with redis models 2024-08-06 13:11:55 -04:00
wmantly 441e372987 Added socket.io 2024-07-31 19:01:55 -04:00
wmantly fc66225cf5 new front end #33 2024-07-30 20:47:46 -04:00
wmantly b32b2de001 pull SSL certs via API 2024-02-07 00:07:51 -05:00
wmantly 7053536353 service for complex look up 2020-12-22 20:20:15 -05:00
wmantly 607a5f33af ldap user 2020-05-01 17:57:25 -04:00
wmantly 5266aec2b1 gui 2020-04-10 17:04:50 -04:00
wmantly 0c337716d3 merged 2020-04-09 22:47:08 -04:00
wmantly 255d6568fd new model model 2020-04-09 22:22:54 -04:00
wmantly fb71dc1dea fixes 2019-12-22 14:42:35 -05:00
wmantly 6a2a260fa2 added better error support 2019-12-20 20:17:23 -05:00
wmantly a1a8e5f319 updated app.js for fontend 2019-12-20 13:37:00 -05:00
wmantly 9a802e2941 updated app.js for fontend 2019-12-12 13:27:36 -05:00
wmantly 236753b383 moved all files to code directory 2019-09-02 11:26:48 -04:00