Commit 069a70f
committed
fix(app-router): encode returnTo in login redirect to prevent OAuth param injection
URLencode returnTo in appRouteHandlerFactory so the query params don't break out into
/auth/login and get forwarded to /authorize (e.g., scope, audience, etc).
Also obey the local returnTo instead of the global opt.
This bug was found with ZeroPath.
Signed-off-by: Joshua Rogers <[email protected]>1 parent 0055cc4 commit 069a70f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
0 commit comments