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;
}
A.
Javascript buffer overflow
B.
AJAX XHR weaknesses
C.
DOM-based XSS
D.
JSON weaknesses