Skip to content

web: Block open redirects in RedirectHandler - #3766

Merged
bdarnell merged 1 commit into
tornadoweb:masterfrom
bdarnell:proto-relative-redir
Oct 6, 2026
Merged

bdarnell merged 1 commit into
tornadoweb:masterfrom
bdarnell:proto-relative-redir

Conversation

@bdarnell

@bdarnell bdarnell commented Oct 6, 2026

Copy link
Copy Markdown
Member

When the redirect target is formatted from parts of the input, and one of those parts appears at the start of the new URL, this can be used to construct protocol-relative URLs which effectively make an open redirect. Now we refuse to redirect to a protocol-relative URL unless the double slash was present in the configured pattern.

When the redirect target is formatted from parts of the input, and
one of those parts appears at the start of the new URL, this can
be used to construct protocol-relative URLs which effectively
make an open redirect. Now we refuse to redirect to a
protocol-relative URL unless the double slash was present in the
configured pattern.
@bdarnell
bdarnell merged commit 4bf9a50 into tornadoweb:master Oct 6, 2026
17 checks passed
@bdarnell
bdarnell deleted the proto-relative-redir branch October 6, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant