You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://d2layld3p8p37s.cloudfront.net//evil.com/ results in redirecting to evil.com which obviously would allow a malicious user to take advantage of my domain name to forward people to potentially dangerous urls.
note the trailing slash. It must have something to do with the trailing slash because without the trailing slash it works properly and 404s.
I should note that I tested the example link in the open-next repo readme and it DOES NOT behave this way but an out of the box deployment with the settings above does seem to allow for this unexpected redirect.
Good catch, i think i know what's the issue here, i'll create a PR later today.
As you've said it's very likely to have something to do with the trailing slash
I just created and deployed a blank project using the instructions from the docs
with the settings below.

Without changing any of the code I deployed to https://d2layld3p8p37s.cloudfront.net/
https://d2layld3p8p37s.cloudfront.net//evil.com/ results in redirecting to evil.com which obviously would allow a malicious user to take advantage of my domain name to forward people to potentially dangerous urls.
note the trailing slash. It must have something to do with the trailing slash because without the trailing slash it works properly and 404s.
Improper Redirect: https://d2layld3p8p37s.cloudfront.net//evil.com/
Proper 404 behaviour https://d2layld3p8p37s.cloudfront.net//evil.com
this is using
The text was updated successfully, but these errors were encountered: