request.url.query is empty when Host header is ended with # #1557
Unanswered
bbangjooo
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I found that
request.url
is made fromHost
header(URL class).So when I send
Host
header ended with#
,request.url.query
is empty butrequest.query_params
still contains query strings. This behavior is also occured betweenrequest.url.path
andrequest.path_params
example :
Host
header ended with#
I think the example is not intended behavior.
Expected impact
If server owner sanitize or filter their incoming request using
request.url.query
orrequest.url.path
for any reason, It will be bypassed by sending request withHost
header ended with#
Beta Was this translation helpful? Give feedback.
All reactions