Skip to content

Commit 33d924f

Browse files
Merge branch 'main' into add-zen-qa
2 parents 7a0c824 + 6ed09e9 commit 33d924f

2 files changed

Lines changed: 4 additions & 2 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
}

agent_api/src/test/java/attack_wave_detection/WebScanDetectorBenchmarkTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void testPerformance() {
2525
}
2626
long end = System.nanoTime();
2727
double timePerCheck = (double) (end - start) / iterations / 3 / 1_000_000; // Convert nanoseconds to milliseconds
28-
assertTrue(timePerCheck < 0.006,
29-
String.format("Took %.6fms per check (expected < 0.006ms)", timePerCheck));
28+
assertTrue(timePerCheck < 0.007,
29+
String.format("Took %.6fms per check (expected < 0.007ms)", timePerCheck));
3030
}
3131
}

0 commit comments

Comments
 (0)