ISC2 Certified Secure Software Lifecycle Professional (CSSLP) Practice Question
During a peer review you notice a file-upload handler that blocks filenames containing ".exe", ".bat", or ".cmd". To follow secure coding guidance and minimize future maintenance, which change should you recommend to the developer?
Leave validation unchanged and rely on the operating system to stop execution of uploaded files.
Replace the deny-list with a small allow-list of approved extensions (for example, .jpg and .pdf only).
Extend the deny-list to cover every extension identified in current malware signature databases.
Use a regular expression to remove all period characters from the supplied filename.
Security guidance favors validating input against an allow-list of explicitly permitted values. Allow-listing extensions such as .jpg and .pdf limits accepted files to known-good types, eliminating the need to continuously expand a deny-list as new dangerous extensions appear. Merely enlarging the deny-list is reactive and error-prone, stripping dots can break legitimate names and is easily bypassed, and trusting the operating system shifts, rather than solves, the validation responsibility.
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 allow-listing preferred over deny-listing?
Open an interactive chat with Bash
What are other common examples of allow-listing in security?
Open an interactive chat with Bash
Why isn’t relying on the operating system for security validation sufficient?
Open an interactive chat with Bash
What is the difference between a deny-list and an allow-list?
Open an interactive chat with Bash
Why is relying on the operating system for file validation insecure?
Open an interactive chat with Bash
How does a regular expression break legitimate filenames during validation?
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 .