We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c768a9 commit 25efd71Copy full SHA for 25efd71
library/vulnerabilities/ssrf/isRequestToItself.ts
@@ -12,7 +12,7 @@ export function isRequestToItself({
12
port: number | undefined;
13
paths: string[];
14
}): boolean {
15
- if (source !== "headers" || typeof port !== "number") {
+ if (source !== "headers" || typeof port !== "number" || paths.length === 0) {
16
return false;
17
}
18
0 commit comments