ISC2 Certified Secure Software Lifecycle Professional (CSSLP) Practice Question
While modeling threats for a customer self-service portal, you document a misuse case: an attacker uploads a file disguised as a PNG that actually carries JavaScript, which executes when other users view it. What security requirement most effectively counters this scenario?
The portal must record the source IP address of every file upload for post-incident investigation.
The application must verify that the file's MIME type and content match an approved list of image formats before accepting the upload.
The system must encrypt all uploaded files at rest using AES-256 encryption.
The server must reject any image larger than 5 MB to conserve storage and bandwidth.
Validating both the declared MIME type and the actual binary content against an allow list greatly reduces the likelihood that disguised script files will be stored and later rendered, thereby mitigating the stored cross-site-scripting threat at the point of upload. Additional defenses such as output encoding and Content Security Policy are still recommended for defense-in-depth. Merely logging upload activity, limiting file size, or encrypting files at rest do not prevent the malicious script from reaching users, though they may serve other purposes such as auditing or confidentiality.
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 a MIME type?
Open an interactive chat with Bash
What is stored cross-site scripting (XSS)?
Open an interactive chat with Bash
Why does MIME type validation alone not suffice?
Open an interactive chat with Bash
ISC2 Certified Secure Software Lifecycle Professional (CSSLP)
Secure Software Requirements
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 .