Restore OpenRedirect's exclusion of POST-only request components

This commit is contained in:
Chris Smowton
2021-04-19 17:05:23 +01:00
parent 685f4fa2a6
commit a367950014

View File

@@ -257,7 +257,7 @@ module NetHttp {
or
exists(Method m, string methName |
m.hasQualifiedName("net/http", "Request", methName) and
this = m.getACall()
this = m.getACall().getResult(0)
|
methName = ["Cookie", "Cookies", "MultipartReader", "PostFormValue", "Referer", "UserAgent"]
)