@aikidosec/firewall
Version:
Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks
11 lines (10 loc) • 406 B
TypeScript
import { AsyncLocalStorage } from "async_hooks";
/**
* This storage is used to store the port of outgoing fetch / undici requests.
* This is used to check if ports match when we are inspecting the result of dns resolution.
* If the port does not match, it would be a false positive ssrf detection.
*/
export declare const RequestContextStorage: AsyncLocalStorage<{
url: URL;
port?: number;
}>;