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

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 11–15

  1. 11application · medium

    A Java REST API exposes an endpoint GET /api/orders/{orderId} that returns order details. A penetration test reveals that an authenticated user can retrieve another user's order by changing the orderId in the URL. The application uses JWT-based authentication and does not check whether the order belongs to the current user. Which remediation is the most appropriate?

    Select an answer first
  2. 12expert · hard

    A Java application has an API endpoint that allows users to update their own profile. The endpoint accepts a 'userId' parameter in the request body. A security tester finds that by changing the 'userId' to another user's ID, they can update that user's profile. The application uses JWT for authentication. Which is the most effective fix?

    Select an answer first
  3. 13application · medium

    A Java application allows users to reset their passwords via a link sent to their email. The reset link contains a token that is valid for 24 hours and is stored in the database. A security review finds that the token is generated using a predictable random number generator and is not invalidated after use. Which of the following is the most likely attack that could succeed?

    Select an answer first
  4. 14application · medium

    A Java application has a role hierarchy where a 'manager' role inherits permissions from 'employee'. A bug in the authorization framework allows a user with the 'employee' role to escalate to 'manager' by manipulating a request parameter. Which type of authorization threat is this, and what is the most effective mitigation?

    Select an answer first
  5. 15expert · hard

    A Java application uses a two-factor authentication (2FA) system that sends a one-time passcode (OTP) via SMS. The application has a rate limit of 5 attempts per phone number per hour. A security review finds that the OTP is only 4 digits and is not hashed in the database. An attacker who knows the victim's phone number and has obtained a valid session ID can attempt to brute-force the OTP. What is the most effective mitigation that also maintains usability?

    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.