Commit Graph
3 Commits
Author SHA1 Message Date
sam 1da24232af fix(tests): add contexts to HTTP test requests 2026-08-15 23:43:55 +10:00
sam afb8c3a064 fix(webui): preserve encoded redirect path characters 2026-08-12 19:19:48 +10:00
sam 80f9d92e51 fix(webui): close open-redirect in dashboard token-exchange handler
clean.RequestURI() echoed the incoming request's raw path/query straight
into http.Redirect's Location header. A path starting with "//" is treated
by browsers as protocol-relative, so a crafted token-exchange link could
redirect off-host after a legitimate token exchange. sameOriginPath()
collapses any leading "//" before the value is ever used.

Fixes #440
2026-08-09 01:13:20 +10:00