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

EC-CouncilCertified Application Security Engineer (Java)

Domain 6Objective 2

Defensive Coding Against Broken Session Management CASEJAVA Practice Questions (Page 2)

Part of the Secure Coding: Session Management domain, which makes up ~12% of our current practice bank. EC-Council does not publish an official question count, but from its 120-minute exam (~50–80 total, ~6–10 in this domain), expect 3–5 from this objective — we provide 45 practice questions to prepare you well beyond it. (estimate)

45questions here
9free pages
9concepts

Questions 6–10

  1. 6application · medium

    A Java web application currently uses URL rewriting as a fallback when cookies are disabled. A security audit requires that session IDs never appear in URLs, logs, or referrer headers. Which configuration change should be made?

    Select an answer first
  2. 7application · medium

    A Java web application allows users to log in with a username and password. After successful authentication, the application stores the user's role in the session and redirects to a dashboard. A security review finds that an attacker can force a victim to use a known session ID before login, and after login the session ID remains the same. Which combination of controls should be implemented to mitigate this issue?

    Select an answer first
  3. 8application · medium

    A Java application stores the session ID in a cookie and also in `localStorage` for use by a JavaScript single-page application. A security review identifies that an XSS vulnerability could allow an attacker to read the session ID from `localStorage`. What is the best remediation?

    Select an answer first
  4. 9foundation · easy

    What is the primary purpose of session management in a web application?

    Select an answer first
  5. 10application · medium

    A Java web application is deployed behind a load balancer that terminates TLS. The application sets the session cookie without the Secure attribute because it sees HTTP on the internal connection. What is the best way to ensure the cookie is marked Secure?

    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.