SY0-801 Domain 2.0 · Objective 2.4 · Threats, Vulnerabilities, and Attacks

Security+ SY0-801 SQL Injection vs. XSS Vulnerability Analysis PBQ

Exam Scenario: WAF logs show requests containing `' OR '1'='1' --` against `/api/login` alongside a separate forum post containing ``. Identify both vulnerabilities, state which targets the server vs. the victim's browser, and name the primary code-level fix for each.
Sitting CompTIA Security+ V8 (SY0-801)?

Get unlimited daily PBQ drills, Objective 2.6 AI-security practice, and weak-domain mastery tracking with a 7-day free trial on Android.

Start 7-Day Free Trial on Google Play →
`. Identify both vulnerabilities, state which targets the server vs. the victim's browser, and name the primary code-level fix for each.", user_answer: answer }) }); const data = await res.json(); out.style.display = "block"; if (!res.ok) { out.innerHTML = "

" + (data.error || "Unable to grade right now.") + "

"; } else { const r = data.rubric; const missed = Array.isArray(r.missed_concepts) && r.missed_concepts.length ? "

Missed Concepts: " + r.missed_concepts.join(", ") + "

" : ""; out.innerHTML = "
AI Score: " + r.score_0_to_100 + "/100 (" + r.verdict + ")
" + "

" + r.feedback + "

" + missed + "

SY0-801 Exam Tip: " + r.exam_tip + "

" + "

Follow-Up Drill: " + r.follow_up_question + "

"; } } catch (e) { out.style.display = "block"; out.innerHTML = "

Network error reaching grader API. Please try again.

"; } finally { btn.disabled = false; btn.textContent = "Grade My Answer Free (AI Rubric)"; } });