Skip to content
Opsfolk

Secure coding, topic 17 of 70

Input validation

Most vulnerabilities start with input the code trusted: a form field, a header, a file, a message from another service. Validate on the server, by allow lists of what is expected, its type, length, format and range, rather than block lists of what is known to be bad.

Validation is a first line, not the whole defence: the output must still be encoded for where it goes, and queries parameterised.

On Opsfolk

Nothing of ours for this topic yet: an article is on its way.

Elsewhere

Your progress