#I did a scan that said I am susceptible to "Redirection via Arbitrary Host Header Manipulation"

12 messages · Page 1 of 1 (latest)

waxen needle
#

IP 34.86.119.124 on port 80 is prone to host header manipulation. How do I fix this?
When I enter this URL in the browser, it doesn't go to my site/API, it goes to Railway.

I am using Golang btw.

keen scaffoldBOT
#

Project ID: b9925fd6-91f7-4404-b3d6-d26d91fdb2c3

thorny joltBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

waxen needle
#

b9925fd6-91f7-4404-b3d6-d26d91fdb2c3

thick fractal
#

you can't use an ip address to access your app, please use the provided domains or use a custom domain

waxen needle
thick fractal
#

railway uses the host to know what app to proxy the incoming requests to, nothing here is bad or out of the ordinary

waxen needle
waxen needle
#

@thick fractal Wait, so to clarify, there is no way to pervent it from directing to qqq.com?

thick fractal
#

if you're worried about some kind of security vulnerability or attack vector, I genuinely can't see how this would effect your api in any way, if a user wants to specify an incorrect host when making a request well then their request simply won't make it to your app and that's on the user for creating a malformed request

waxen needle
#

Ah okay, I understand. I just wanted to make sure that we were talking about the same thing the other day. Thanks for the suggestions!