untrusted input (web)
Any data that could have been controlled by someone other than you, such as form fields, URL parameters, messages or third-party API responses.
In more detail
Attackers can shape it freely, so it may contain markup, script or unexpected values. Treat it as hostile until it has been validated or safely encoded for where it is used.
Related terms
- sanitization — Cleaning untrusted input by removing or neutralising anything dangerous, such as script tags and event attributes in HTML.
- injection sink — A place in code where a string is interpreted as HTML or code, such as innerHTML, document.write or eval, and so can run an attack if the string is untrusted.
Taught in
- Content Security Policy (CSP), Trusted Types And XSS Defenses — Frontend Architecture & Web Platform