@aikidosec/firewall
Version:
Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks
14 lines (13 loc) • 551 B
TypeScript
import { Context } from "../../agent/Context";
import { InterceptorResult } from "../../agent/hooks/InterceptorResult";
import { SQLDialect } from "./dialects/SQLDialect";
/**
* This function goes over all the different input types in the context and checks
* if it's a possible SQL Injection, if so the function returns an InterceptorResult
*/
export declare function checkContextForSqlInjection({ sql, operation, context, dialect, }: {
sql: string;
operation: string;
context: Context;
dialect: SQLDialect;
}): InterceptorResult;