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

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 31–35

  1. 31application · medium

    A Java web application has an admin panel at /admin that is not linked in the UI. A regular user discovers they can access the panel by typing the URL directly. The application uses role-based access control (RBAC) but only hides the admin link from non-admin users. Which vulnerability is this, and what is the most effective fix?

    Select an answer first
  2. 32expert · hard

    A Java application has a role-based access control system where users can have multiple roles. The application uses a JWT that contains the user's roles. A security review finds that the JWT is signed with a weak algorithm (HS256) and the secret key is hardcoded in the source code. An attacker extracts the key and forges a JWT with the 'admin' role. Which two vulnerabilities are present, and what is the most effective combined mitigation?

    Select an answer first
  3. 33application · medium

    A Java application uses a session-based authentication mechanism. The application sets a session cookie without the Secure flag, and the site is accessible over both HTTP and HTTPS. A security review finds that the session ID is generated using a weak random number generator. Which of the following is the most likely attack that could succeed?

    Select an answer first
  4. 34application · medium

    A Java application uses a login form that submits credentials over HTTPS. The application has a 'remember me' feature that stores a persistent cookie with the user's username and a hash of the password. A security review finds that the cookie is not HttpOnly and is not scoped to a specific device. Which of the following is the most significant risk associated with this 'remember me' implementation?

    Select an answer first
  5. 35application · medium

    A Java application has a REST API that allows users to update their profile. The API endpoint is /api/profile and accepts a JSON payload. A security audit finds that the endpoint does not check whether the authenticated user is allowed to modify the 'role' field. An attacker sends a request with 'role': 'admin' and successfully escalates privileges. What is the most appropriate fix?

    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.