Skip to content

[6.x] Handle more cases in external url detection#14315

Merged
jasonvarga merged 6 commits into6.xfrom
is-external-url-backslashes-6.x
Mar 20, 2026
Merged

[6.x] Handle more cases in external url detection#14315
jasonvarga merged 6 commits into6.xfrom
is-external-url-backslashes-6.x

Conversation

@jasonvarga
Copy link
Member

This adds improved handling for more cases in the isExternalToApplication method.

http://current-site.com will now only be considered internal if there's a site defined with a relative url.
Otherwise the current domain could be forged via a header, and trusted if you have trusted proxies set to '*'.
Typically trusted proxies are only set to '*' on load balanced or cloud based hosts which would have their site urls defined as absolute.

Related: #14312

@jasonvarga jasonvarga merged commit 404ba88 into 6.x Mar 20, 2026
32 checks passed
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.

2 participants