deny list

A list of known-bad values to reject, with everything else accepted.

In more detail

Deny lists lose against attackers, who have comment markers, alternate encodings, case tricks, whitespace and nesting, while you have a list written on a Tuesday afternoon. Prefer parameters and allowlists.

Example

Stripping ; and | from an argument before eval is a deny list; passing the value as its own quoted argument is the fix.

Related terms

Taught in

References