Skip to content

Commit eb68183

Browse files
Update StoredSSRFDetector.java
1 parent a3d0fe1 commit eb68183

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

agent_api/src/main/java/dev/aikido/agent_api/vulnerabilities/ssrf/StoredSSRFDetector.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public Attack run(String hostname, List<String> ipAddresses, String operation) {
2525
}
2626

2727
ContextObject context = Context.get();
28+
// the 2nd param makes it so that if context is not set, we default to false.
29+
// this is necessary for stored SSRF where we don't want an early return even if there's no context.
2830
if (shouldSkipVulnerabilityScan(context, false)) {
2931
return null;
3032
}

0 commit comments

Comments
 (0)