-
Notifications
You must be signed in to change notification settings - Fork 167
Closed
Description
I just created and deployed a blank project using the instructions from the docs
pnpm create next-app
pnpm create sst
pnpm sst deploy --stage redirect-test
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
"sst": "^2.40.1",
"next": "14.1.0",
Metadata
Metadata
Assignees
Labels
No labels