Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
EC-Council logo

EC-CouncilCertified Application Security Engineer (Java)

Domain 3Objective 1

Input Validation Approaches and Filtering CASEJAVA Practice Questions (Page 8)

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 36–39

  1. 36expert · hard

    A Java web application has a comment feature. The team wants to prevent stored XSS. They are considering: (1) server-side whitelist validation that only allows letters, digits, and spaces, (2) output encoding when rendering comments, (3) a Content Security Policy (CSP) that disables inline scripts. Which combination provides the most robust defense in depth?

    Select an answer first
  2. 37expert · hard

    A Java application accepts a 'redirect' parameter that specifies a URL to redirect the user to after login. The security team found that an attacker can use a URL like 'https://evil.com' to perform an open redirect. The team wants to allow relative URLs (e.g., '/dashboard') but block absolute URLs to external domains. What is the best validation approach?

    Select an answer first
  3. 38application · medium

    A Java web application accepts a 'username' field that must contain only letters, digits, and underscores, with a maximum length of 20 characters. The development team is deciding between a whitelist regex and a blacklist that removes common SQL injection characters. Which approach should they choose and why?

    Select an answer first
  4. 39application · medium

    A Java application has a feature that allows users to specify a file name for a downloaded report. The file name is used in a Content-Disposition header. An attacker tried to inject a newline character to add a malicious header. What should the developer do to prevent this?

    Select an answer first
Finished these 4 questions?

Review the revealed explanations, or continue through the curriculum.

No more pagesBack to CASEJAVA

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.