ISC2 Certified Secure Software Lifecycle Professional (CSSLP) Practice Question
While conducting threat analysis of a new mobile banking app, you learn that the smartphone stores user JSON Web Tokens (JWTs) in HTML5 local storage and sends them with each REST request to the public API gateway. Which potential attack pattern should you flag as a priority?
Cross-site scripting that steals the JWT and allows session hijacking
Man-in-the-middle downgrade attack on the TLS handshake
Buffer overflow in the mobile device's TLS implementation
SQL injection against the back-end relational database
Because tokens kept in HTML5 local storage are accessible to JavaScript running in the same origin, any successful cross-site scripting (XSS) flaw in the mobile WebView or embedded browser can let an attacker read the JWT and replay it to hijack the user's authenticated session. SQL injection, buffer overflows in the TLS library, and TLS downgrade attacks are real concerns, but they are not specifically amplified by the decision to persist JWTs in local storage. Therefore, XSS-based token theft is the most directly relevant and likely attack pattern to prioritize in this context.
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.
What is XSS and how does it impact application security?
Open an interactive chat with Bash
Why is storing JWTs in HTML5 local storage risky?
Open an interactive chat with Bash
How can developers mitigate XSS in a mobile banking app?
Open an interactive chat with Bash
Why is storing JWTs in HTML5 local storage a security risk?
Open an interactive chat with Bash
What is Cross-Site Scripting (XSS) and how does it lead to session hijacking?
Open an interactive chat with Bash
How can developers protect against XSS-based token theft?
Open an interactive chat with Bash
ISC2 Certified Secure Software Lifecycle Professional (CSSLP)
Secure Software Architecture and Design
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 .