Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mitigate Host Header Attacks #78

Open
eliotsykes opened this issue May 6, 2021 · 0 comments
Open

Mitigate Host Header Attacks #78

eliotsykes opened this issue May 6, 2021 · 0 comments

Comments

@eliotsykes
Copy link
Owner

eliotsykes commented May 6, 2021

The X-Forwarded-Host HTTP header is always trusted and is used in url_for: rails/rails#29893

Mitigations to consider:

(If using a rack middleware, one approach to testing this in a request spec: rspec/rspec-rails#1596 (comment))

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

No branches or pull requests

1 participant