
EC-CouncilCertified Application Security Engineer (Java)
Domain 3Objective 1
Input Validation Approaches and Filtering CASEJAVA Practice Questions (Page 7)
Part of the Secure Coding: Input Validation domain, which makes up ~9% of our current practice bank. EC-Council does not publish an official question count, but from its 120-minute exam (~50–80 total, ~5–7 in this domain), expect 3–4 from this objective — we provide 39 practice questions to prepare you well beyond it. (estimate)
39questions here
8free pages
5concepts
Questions 31–35
- 31
A Java application accepts a 'role' parameter from a request to determine the user's permissions. The application currently uses a blacklist to reject roles like 'admin' or 'root'. An attacker was able to escalate privileges by sending the role as 'a%64min' (URL-encoded). What is the most effective fix?
Select an answer first - 32
A Java web application has a search feature that accepts a query and uses it in a SQL LIKE clause. The application uses a validation framework that checks the length and character set of the input. However, the security team wants to also prevent wildcard injection (e.g., using '%' or '_' to match all records). What is the best way to handle this?
Select an answer first - 33
In which scenario is blacklist validation more practical than whitelist validation?
Select an answer first - 34
What is the purpose of canonicalization in input validation?
Select an answer first - 35
A Java web application has a form that accepts a date of birth. The front-end uses a date picker that sends the date in the format 'yyyy-MM-dd'. The server-side code parses the date using SimpleDateFormat. The security team wants to ensure that the date is valid and not just a string that matches the pattern. What should the developer do?
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. “CASEJAVA” is a trademark of its owner, used for identification only.