Skip to content

Commit

Permalink
Fix edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
timokoessler committed Dec 9, 2024
1 parent 8c768a9 commit 25efd71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/vulnerabilities/ssrf/isRequestToItself.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function isRequestToItself({
port: number | undefined;
paths: string[];
}): boolean {
if (source !== "headers" || typeof port !== "number") {
if (source !== "headers" || typeof port !== "number" || paths.length === 0) {
return false;
}

Expand Down

0 comments on commit 25efd71

Please sign in to comment.