Software Securityhome
Fix a findingSearch
Glossary

Input validation

Checking at a trust boundary that input has the expected type, length, range, format or allowed values before using it, preferably with allowlists and after canonicalization. It narrows what reaches the code but does not replace output encoding or parameter binding (CWE-20).

Covered in

Practice: Path traversal lab: Serve an uploaded file without path traversal · File upload lab: Accept avatars without publishing pages · SSTI lab: Render a welcome banner without template injection · XXE lab: Parse an uploaded invoice without resolving external entities

Find your next answer

Type to search. Search runs in your browser.

Searches run in your browser, but the host can infer them from the index files they load. The address shows your search so you can bookmark or share it.