ISC2 Certified Secure Software Lifecycle Professional (CSSLP) Practice Question
During code review of an e-commerce site, you see shipping addresses are accepted unchanged, stored in the database, logged to text files, and later HTML-encoded in pages. Testers exploited this by adding CRLF characters that forged extra log entries. Which secure-coding action best removes the vulnerability in every sink?
Obfuscate the logging component to hide the log format from potential attackers.
Apply server-side allow-list input validation that rejects control characters in the address before any further processing.
Enable detailed stack traces in error responses so developers can spot malicious input during testing.
Add client-side JavaScript that strips script tags from the address field before submission.
Untrusted input containing CR and LF control characters must be stopped before it reaches any output channel. Context-aware HTML encoding protects the web page but not text logs or database content. The most reliable defense is strict server-side allow-list validation that rejects or strips control characters, ensuring only permitted characters enter the system. Client-side filters can be bypassed, verbose stack traces do not sanitize data, and obscuring the logger does nothing to neutralize injected CRLF sequences.
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 server-side allow-list input validation considered the most reliable defense?
Open an interactive chat with Bash
What are CRLF characters, and why are they dangerous in code review?
Open an interactive chat with Bash
Why isn't client-side JavaScript sufficient for validating user input?
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 .