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-7840 — Proof‑of‑concept exploit for CVE‑2025‑7840 that injects malicious payloads into the Firstname parameter of a reservation form to trigger XSS | Kitploit
Tools/GitHubGitHub/bytereaper77/cve-2025-7840
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationArchived
GitHubbytereaper77/cve-2025-7840

CVE-2025-7840

Proof‑of‑concept exploit for CVE‑2025‑7840 that injects malicious payloads into the Firstname parameter of a reservation form to trigger XSS

View Repository
21 year 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

XSS Exploit for CVE-2025-7840

Author: Byte Reaper (@ByteReaper0)

Description

Proof‑of‑concept exploit for CVE-2025-7840, targeting a vulnerable web application endpoint that fails to sanitize user input on the Firstname parameter of a reservation form. By crafting a GET request to:

root@kitploit:~
/index.php?page=reserve&Firstname=<payload>&Lastname=test

an attacker can inject and execute arbitrary JavaScript in the victim’s browser when the response is rendered.

Features

  • Inject custom payloads with -b option
  • Handle cookie-based sessions via -c option
  • Verbose logging for request/response analysis (-v)
  • Built-in set of common XSS payloads

Requirements

  • Linux or macOS
  • GCC (or compatible C compiler)
  • libcurl development headers
  • argparse library for C

Installation

  1. Compile the exploit:

    root@kitploit:~
    gcc -o exploit exploit.c argparse.c -lcurl 
    

Usage

root@kitploit:~
sudo ./exploit -u <TARGET_URL> [options]

Options

Examples

  • Run default payloads against a target:

    root@kitploit:~
    sudo ./exploit -u http://victim.local
    
  • Use a custom payload:

    root@kitploit:~
    sudo ./exploit -u http://victim.local -b "<script>alert(\'PWNED\')</script>"
    
  • Include session cookies and verbose output:

    root@kitploit:~
    sudo ./exploit -u http://victim.local -c cookies.txt -v
    

Disclaimer

This code is provided for educational and testing purposes only. Unauthorized use against systems you do not own or have explicit permission to test is illegal and unethical.

References

  • CVE-2025-7840: XSS in reservation form
  • Author Telegram: @ByteReaper0

LICENSE:

MIT

Download Tool
FlagDescription
-u URLTarget base URL (e.g. http://victim.local)
-b PAYLOADCustom XSS payload to inject
-c FILECookie jar file to use for session handling
-vVerbose mode (show request/response details)