@aikidosec/firewall
Version:
Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks
13 lines (12 loc) • 542 B
TypeScript
import { Context } from "../../agent/Context";
import { InterceptorResult } from "../../agent/hooks/InterceptorResult";
/**
* This function goes over all the different input types in the context and checks
* if it possibly implies Path Traversal, if so the function returns an InterceptorResult
*/
export declare function checkContextForPathTraversal({ filename, operation, context, checkPathStart, }: {
filename: string | URL | Buffer;
operation: string;
context: Context;
checkPathStart?: boolean;
}): InterceptorResult;