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.
`. 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.") + "