Skip to content

Commit cc958dc

Browse files
thiggy1342hmac
andauthored
Update ruby/ql/src/experimental/manually-check-http-verb/ManuallyCheckHttpVerb.ql
Co-authored-by: Harry Maclean <hmac@github.com>
1 parent a10370f commit cc958dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/ql/src/experimental/manually-check-http-verb/ManuallyCheckHttpVerb.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ class HttpVerbConfig extends TaintTracking::Configuration {
9191
}
9292

9393
from HttpVerbConfig config, DataFlow::PathNode source, DataFlow::PathNode sink
94-
where config.hasFlow(source.getNode(), sink.getNode())
94+
where config.hasFlowPath(source, sink)
9595
select sink.getNode(), source, sink,
9696
"Manually checking HTTP verbs is an indication that multiple requests are routed to the same controller action. This could lead to bypassing necessary authorization methods and other protections, like CSRF protection. Prefer using different controller actions for each HTTP method and relying Rails routing to handle mappting resources and verbs to specific methods."

0 commit comments

Comments
 (0)