Golang: HTTP NewRequest not tainting result #183
Answered
by
smowton
jason-invision
asked this question in
General
|
It doesn't appear that HTTP NewRequest is tainting the resulting request. For example, I had to add this additional taint step: |
Answered by
smowton
Sep 23, 2020
Replies: 2 comments
|
As a general rule, I would disagree that the user having control over the request body implies they have control over the response, so long as I remain in control of the URL. If they have control of the URL on the other hand, I agree that makes the response dangerous. I'll add a rule specifically noting that tainted URL -> tainted response. Particular queries that are concerned about user control of the body but not the URL should add their own rule as you have here. |
0 replies
0 replies
Answer selected by
xcorail
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
github/codeql-go#352