
EC-CouncilCertified Application Security Engineer (.NET)
Domain 3Objective 1
Input Validation Approaches and Filtering CASENET Practice Questions (Page 4)
Part of the Secure Coding: Input Validation domain, which makes up ~11% of our current practice bank. EC-Council does not publish an official question count, but from its 120-minute exam (~50–80 total, ~6–9 in this domain), expect 2–2 from this objective — we provide 49 practice questions to prepare you well beyond it. (estimate)
49questions here
10free pages
9concepts
Questions 16–20
- 16
A developer is implementing a chat feature where users can send messages that are displayed to other users. The team wants to allow some HTML formatting like <b> and <i> but prevent XSS. What is the most secure approach?
Select an answer first - 17
A .NET web application displays user-supplied comments on a page. The team wants to prevent cross-site scripting (XSS) by encoding the output. Which approach is most effective?
Select an answer first - 18
An ASP.NET Core application allows users to upload profile pictures. The filename is taken from the user's input and used to save the file on the server. A security review found that an attacker could upload a file with a name like '..\..\wwwroot\malicious.aspx'. What is the best defense?
Select an answer first - 19
Which validation approach is considered most secure because it only accepts input that matches a predefined set of allowed patterns?
Select an answer first - 20
Which input validation approach is based on defining a set of acceptable patterns and rejecting anything that does not match?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by EC-Council. “CASENET” is a trademark of its owner, used for identification only.