hardMultiple ChoiceObjective-mapped
SSCP Practice Question: Refer to the exhibit
Exhibit
Refer to the exhibit. ``` 192.168.1.10 - - [05/Mar/2025:13:45:12 +0000] "GET /products?id=1' OR '1'='1 HTTP/1.1" 200 1234 "-" "Mozilla/5.0" 192.168.1.10 - - [05/Mar/2025:13:45:15 +0000] "GET /products?id=1; DROP TABLE Users;-- HTTP/1.1" 200 1234 "-" "Mozilla/5.0" ```
Refer to the exhibit. A web server log shows two requests from the same IP. What type of attack is being attempted, and which mitigation is MOST effective?
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
✓
SQL injection; use parameterized queries
The requests contain SQL injection patterns (OR 1=1 and DROP TABLE). Parameterized queries prevent SQL injection. Option B is wrong because XSS would involve script tags. Option C is wrong because CSRF would involve a different method and referrer. Option D is wrong because command injection would involve shell commands.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
SQL injection; use parameterized queries
Why this is correct
The requests contain SQL injection patterns (OR 1=1 and DROP TABLE). Parameterized queries prevent SQL injection by separating code from data.
- ✗
Cross-site scripting (XSS); encode all output
Why it's wrong here
Cross-site scripting (XSS) would involve injecting client-side scripts like <script> tags, which are not present in these requests.
- ✗
Cross-site request forgery (CSRF); use anti-CSRF tokens
Why it's wrong here
Cross-site request forgery (CSRF) exploits user authentication to perform unintended actions, typically requiring a different request pattern and referrer header.
- ✗
Command injection; implement input validation
Why it's wrong here
Command injection would involve shell commands or operators (e.g., ;, |, &&), which are not seen in these requests; input validation can block it.
Go deeper
Related to this question
About these practice questions
One of 920 original SSCP practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more way this is tested on SSCP
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. Refer to the exhibit. A web server at 10.0.0.50 received the payload shown. What is the MOST likely impact if the web application is vulnerable?
easy- A.Directory traversal to read sensitive files.
- B.Remote code execution on the web server.
- ✓ C.Authentication bypass via SQL injection.
- D.Cross-site scripting (XSS) attack leading to session theft.
Why C: The payload shown is a classic SQL injection attempt, specifically targeting authentication logic by injecting a tautology (e.g., ' OR '1'='1) into a login field. If the web application is vulnerable, this bypasses authentication by making the SQL query always return true, granting unauthorized access without valid credentials.
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.