PrepAway - Latest Free Exam Questions & Answers

Which of the following potential vulnerabilities exists in the following code snippet?

Which of the following potential vulnerabilities exists in the following code snippet?
var myEmail = document.getElementById(“formInputEmail”).value;
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
Document.getElementById(“profileBox”).innerHTML = “Emails will be sent to “ + myEmail +
xmlhttp.responseText;
}

PrepAway - Latest Free Exam Questions & Answers

A.
Javascript buffer overflow

B.
AJAX XHR weaknesses

C.
DOM-based XSS

D.
JSON weaknesses


Leave a Reply