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
..
2026-08-08 16:42:59 +10:00
2026-08-08 16:42:59 +10:00
2026-08-06 22:55:26 +10:00
2026-07-31 01:13:08 +10:00
2026-08-08 01:32:35 +10:00
2026-08-08 01:32:35 +10:00
2026-07-29 11:40:24 +10:00
2026-08-05 15:00:29 +10:00
2026-08-06 22:55:26 +10:00
2026-08-08 01:32:35 +10:00
2026-07-29 03:23:57 +10:00
2026-08-08 16:42:59 +10:00
2026-08-06 22:55:26 +10:00
2026-08-06 22:55:26 +10:00
2026-08-04 01:44:56 +10:00
2026-08-04 02:13:05 +10:00
2026-07-29 10:57:18 +10:00
2026-08-06 22:55:26 +10:00
2026-07-28 01:37:20 +10:00
2026-07-30 00:06:10 +10:00
2026-07-28 01:37:20 +10:00
2026-08-06 01:40:15 +10:00
2026-08-06 01:40:15 +10:00
2026-07-31 08:45:58 +10:00
2026-08-05 03:54:25 +10:00
2026-07-29 23:15:58 +10:00
2026-07-31 01:13:08 +10:00
2026-08-06 22:55:26 +10:00
2026-07-27 03:34:46 +10:00
2026-07-26 19:51:36 +00:00
2026-08-05 04:15:39 +10:00
2026-08-08 16:42:59 +10:00
2026-08-09 01:13:20 +10:00
2026-08-05 11:55:39 +10:00
2026-08-08 01:32:35 +10:00
2026-07-27 03:04:28 +00:00