Input validation checks supplied data against expected formats, values, or constraints before an application processes it. Weak validation can let malicious input become executable code or alter database queries. section 12.3.2
Web application examples show how weak input checks can expose users and organizations:
- A malicious JavaScript payload entered in a webpage form may be included in the response and run in a user's browser, enabling attacks such as cookie theft or phishing redirects. section 12.3.2
- Crafted input in a search bar or login form may exploit how a website constructs database queries. section 12.3.2
Figure 12.2 Illustration of a Cross-Site Scripting (XSS) attack.

Illustrates how malicious input can pass through a webpage and execute as a cross-site scripting attack. section 12.3.2











































