@aikidosec/firewall
Version:
Zen by Aikido is an embedded Application Firewall that autonomously protects Node.js apps against common and critical attacks, provides rate limiting, detects malicious traffic (including bots), and more.
7 lines (6 loc) • 413 B
TypeScript
/**
* Checks if the user input is part of queries that execute JS code on the server.
* If the user input is part of the query and not safely encapsulated, it's considered an injection.
* Because strings are always encapsulated in quotes in JS, every non-encapsulated user input is an injection.
*/
export declare function detectDbJsInjection(userInput: string, filterPart: Record<string, unknown>): boolean;