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 2)

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 6–10

  1. 6application · medium

    A healthcare application allows patients to view their medical records online. The application uses a Java backend and has a role-based access control system. A security audit finds that the application does not enforce authorization on the API endpoints that return medical records; it only hides the links in the UI. What is the most likely business impact of this flaw?

    Select an answer first
  2. 7expert · hard

    A Java web application uses a session cookie that is not marked HttpOnly. A developer argues that since the application uses Content Security Policy (CSP) to block inline scripts, the risk of XSS stealing the cookie is low. The security team wants to add the HttpOnly flag. Which consideration is most important in this decision?

    Select an answer first
  3. 8application · medium

    A Java application exposes a REST API for a mobile app. The API uses API keys passed in the Authorization header. A security review finds that the API keys are long-lived and stored in the mobile app's source code. An attacker extracts the key and uses it to access other users' data by guessing user IDs. Which two vulnerabilities are present?

    Select an answer first
  4. 9application · medium

    A Java application allows users to log in with either a username/password or via OAuth2 with a social identity provider. The application stores the OAuth2 access token in the session and uses it to call the provider's API. A security review finds that the application does not validate the 'aud' (audience) claim in the ID token. What is the most likely threat this flaw exposes?

    Select an answer first
  5. 10expert · hard

    A Java web application uses a session management mechanism that generates session IDs using a predictable pattern. An attacker can predict another user's session ID and hijack the session. The application also does not invalidate sessions on logout. Which two controls are most important to mitigate these issues?

    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.