
EC-CouncilCertified Application Security Engineer (.NET)
Domain 3Objective 1
Input Validation Approaches and Filtering CASENET Practice Questions (Page 10)
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 46–49
- 46
Which regular expression would you use to validate that a string contains only lowercase letters and is exactly 5 characters long?
Select an answer first - 47
A .NET API accepts a 'date' parameter as a string. The parameter must be a valid date in the format yyyy-MM-dd and must not be in the future. The current code uses DateTime.TryParseExact with the format and then compares to DateTime.UtcNow. What is a potential issue with this approach?
Select an answer first - 48
Which of the following best describes the role of client-side validation?
Select an answer first - 49
A .NET application has a feature that accepts a file path from the user and opens the file. The developer implemented a whitelist that only allows paths starting with 'C:\Safe\'. A penetration test found that an attacker can bypass this by using the path 'C:\Safe\..\Secret\file.txt'. What is the most effective fix?
Select an answer first
Finished these 4 questions?
Review the revealed explanations, or continue through the curriculum.
No more pagesBack to CASENET
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.