Input validatie — controleren of gebruikersinvoer aan verwachte criteria voldoet voordat deze wordt verwerkt — is een fundamentele beveiligingspraktijk. Omdat aanvallen vaak via schadelijke invoer komen, helpt validatie (en reiniging) van invoer veel kwetsbaarheden voorkomen. Een kernprincipe: vertrouw nooit op gebruikersinvoer.
Vertrouw nooit op gebruikersinvoer
ALL input from outside (users, APIs, files, requests) is UNTRUSTED — it can be malicious:
→ attackers send crafted input to exploit vulnerabilities (injection, XSS, etc.)
→ "never trust the client" — input can be anything, including attacks
→ Validate and handle ALL external input as potentially hostile.
