ISC2 Certified Secure Software Lifecycle Professional (CSSLP) Practice Question
During a code review you learn that a web application issues sequential numeric session IDs, transmits them over plain HTTP, and stores them in a cookie that can be read by client-side scripts. What single change will most effectively harden the session lifecycle against hijacking and eavesdropping attacks?
Hash the sequential ID with MD5 before placing it in the existing cookie.
Require HTTPS for the entire site and set the session cookie with both Secure and HttpOnly attributes.
Replace the numeric ID with a signed JSON Web Token stored in browser localStorage.
Increase the session timeout from 30 minutes to 12 hours so users log in less frequently.
Sending the session cookie only over an encrypted channel and marking it as Secure and HttpOnly simultaneously solves two major weaknesses: it prevents network observers from capturing the token and stops client-side scripts (including any injected by XSS) from reading it. While unpredictable, high-entropy tokens are also important, a strong token can still be stolen if it is sent in cleartext or accessible to script. Similarly, moving the token to localStorage or extending its lifetime does not mitigate the interception and XSS risks present in the current design.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why is requiring HTTPS important for securing the session lifecycle?
Open an interactive chat with Bash
What does the Secure and HttpOnly attribute do for cookies?
Open an interactive chat with Bash
Why are sequential numeric session IDs problematic in security?
Open an interactive chat with Bash
ISC2 Certified Secure Software Lifecycle Professional (CSSLP)
Secure Software Implementation
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .