
EC-CouncilCertified Application Security Engineer (Java)
Domain 3Objective 1
Input Validation Approaches and Filtering CASEJAVA Practice Questions (Page 6)
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 26–30
- 26
A Java application has a search feature that accepts a 'q' parameter. The team implemented a blacklist that removes the string 'script' (case-insensitive) and then URL-decodes the input. A tester submits 'scr%2569pt' and the XSS payload executes. What is the most likely reason?
Select an answer first - 27
A Java web application receives a username from a login form. The username is used in a security check that compares it to a list of blocked users. An attacker tried to bypass the block by using the Unicode character 'U' (fullwidth U) instead of a regular 'U'. What should the developer do to prevent this bypass?
Select an answer first - 28
Which input validation strategy is based on defining a set of allowed patterns and rejecting any input that does not match?
Select an answer first - 29
A Java application accepts a 'message' field that is stored in a database and later displayed in a mobile app as plain text. The team is debating whether to sanitize the input or encode the output. Which approach is most appropriate?
Select an answer first - 30
A Java application has a file upload feature that stores files in a directory based on a user-supplied category. The category is used to construct the file path (e.g., /uploads/{category}/file.txt). The security team found that an attacker can use a category like '..%2f..%2fetc' to write files outside the uploads directory. The team also needs to support categories with spaces and hyphens. What is the best approach?
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.