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

EC-CouncilCertified Application Security Engineer (Java)

Domain 4Objective 1

Common Threats on Authentication and Authorization CASEJAVA Practice Questions (Page 5)

Part of the Secure Coding: Authentication and Authorization 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 3–5 from this objective — we provide 41 practice questions to prepare you well beyond it. (estimate)

41questions here
9free pages
3concepts

Questions 21–25

  1. 21expert · hard

    A Java application has an admin panel that is accessible at /admin. The application uses a filter that checks whether the user's role is 'admin' before allowing access to any URL starting with /admin. However, the application also serves static resources from /admin-resources, and the filter does not cover that path. An attacker discovers that they can access admin functionality by requesting /admin-resources/../admin. What is the most effective fix that also minimizes the risk of breaking legitimate functionality?

    Select an answer first
  2. 22application · medium

    A Java web application uses a 30-minute session timeout and stores the session ID in a cookie. A user reports that after logging in on a public computer, they closed the browser and left. Later, they noticed unauthorized purchases on their account. Which combination of weaknesses most likely contributed to this session hijacking?

    Select an answer first
  3. 23application · medium

    A financial services company deploys a Java application that uses role-based access control (RBAC). A security audit reveals that the application does not re-validate authorization on every request; instead, it caches the user's role in the session and trusts it indefinitely. An attacker who performs a privilege escalation by modifying a hidden form field gains admin access. What is the most significant business impact of this authorization flaw?

    Select an answer first
  4. 24application · medium

    A Java-based e-commerce application stores user passwords as salted SHA-256 hashes. During a security review, the team discovers that the login endpoint has no rate limiting and that the application returns a generic 'invalid credentials' message for both unknown usernames and wrong passwords. Which combination of controls would most effectively reduce the risk of credential stuffing and brute-force attacks while also improving the security impact of the authentication flaw?

    Select an answer first
  5. 25expert · hard

    A Java application for a government agency allows citizens to file tax returns online. The application uses a username/password login and has no rate limiting on the login endpoint. A security audit finds that the application does not lock accounts after multiple failed attempts. An attacker uses a large list of usernames and common passwords to attempt login. What is the most significant business impact of this vulnerability?

    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.