-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathSSRF.ql
More file actions
23 lines (21 loc) · 747 Bytes
/
SSRF.ql
File metadata and controls
23 lines (21 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
* @name Uncontrolled data used in network request
* @description Sending network requests with user-controlled data allows for request forgery attacks.
* @id go/ssrf
* @kind path-problem
* @problem.severity error
* @precision high
* @tags security
* experimental
* external/cwe/cwe-918
*/
import go
import SSRF
import ServerSideRequestForgery::Flow::PathGraph
from
ServerSideRequestForgery::Flow::PathNode source, ServerSideRequestForgery::Flow::PathNode sink,
DataFlow::Node request
where
ServerSideRequestForgery::Flow::flowPath(source, sink) and
request = sink.getNode().(ServerSideRequestForgery::Sink).getARequest()
select request, source, sink, "The URL of this request depends on a user-provided value."