
PoC and Setup for CVE-2025-4664
This repository contains a PoC for exploiting CVE-2025-4664, a vulnerability where Chromium-based browsers leak sensitive URL parameters through Link header preload requests.
For a detailed explanation of how this exploit works, read the blog post: https://amalmurali.me/posts/cve-2025-4664e.
Watch this video to understand the flow:
target.py - Vulnerable web applicationidp.py - SSO identity providerattacker.py - Malicious server that logs leaked tokenstemplates/ - HTML templates for the demostatic/ - Static assets (logo, avatar, CSS)python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Add these entries to your /etc/hosts file:
127.0.0.1 example.com
127.0.0.1 sso.example.com
127.0.0.1 attacker.test
Start all three servers in separate terminals (after activating the venv):
# Terminal 1: Target application
python target.py
# Terminal 2: SSO Identity Provider
python idp.py
# Terminal 3: Attacker server
python attacker.py
This repository is for educational purposes only. The information provided here is intended to help developers understand the vulnerability and protect their systems. Do not use this exploit maliciously or without permission. Use of this PoC is at your own risk. The author is not responsible for any damages or legal issues that may arise from the use of this information.