Courseiva
mediumMultiple ChoiceObjective-mapped

SSCP Practice Question: A software development team is implementing input…

A software development team is implementing input validation for a web application that accepts user email addresses. Which approach BEST prevents email injection attacks?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Whitelist allowed characters: alphanumeric, @, ., -, _

Whitelisting allowed characters (alphanumeric, @, ., -, _) restricts input to safe characters, effectively preventing injection of special characters used in email injection attacks. Option B is incorrect because blacklisting known malicious patterns is easily bypassed by attackers using novel patterns. Option C is incorrect because setting a maximum email length does not prevent injection of malicious characters within that length. Option D is incorrect because client-side validation alone can be bypassed by disabling JavaScript or intercepting requests, so server-side validation is essential.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Whitelist allowed characters: alphanumeric, @, ., -, _

    Why this is correct

    Whitelisting only safe characters prevents injection.

  • Blacklist known malicious email patterns

    Why it's wrong here

    Blacklisting is reactive and can be bypassed with variations.

  • Set maximum email length to 100 characters

    Why it's wrong here

    Length limits do not prevent injection of malicious characters.

  • Rely on client-side JavaScript validation only

    Why it's wrong here

    Client-side validation can be easily bypassed.

About these practice questions

This SSCP question is part of Courseiva's 920-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SSCP practice question is part of Courseiva's free ISC2 certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SSCP exam.