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
Tools/GitHubGitHub/puckiestyle/cve-2024-23113
Vulnerability ScannersExploitationWeb Application ExploitationNetwork SecurityPenetration Testing
GitHubpuckiestyle/cve-2024-23113

CVE-2024-23113

Detects CVE-2024-23113 format string vulnerability in FortiGate FGFM service via SSL connection on port 541, sending crafted payloads to verify RCE susceptibility.

View Repository
11392 years agoNot yet reviewed
Share

CVE-2024-23113

The script is designed to detect CVE-2024-23113, which is a format string vulnerability in the FortiGate FGFM service (FortiGate to FortiManager protocol) running on TCP port 541. The vulnerability occurs because an attacker can control a format string, which could lead to Remote Code Execution (RCE) or other unintended behaviors. The FGFM service allows communication between FortiGate devices and FortiManager for configuration management, and an unpatched version has improper handling of input, making it susceptible to a format string exploit. How the Script Works

Network Connection Setup:
    The script first sets up an SSL/TLS connection to the target on port 541.
    It uses the ssl.SSLContext object with certificate verification disabled to establish the connection, as the device might have self-signed certificates.

Payload Construction:
    Once connected, the script crafts a malicious payload using a format string exploit (authip=%n). The %n directive tells the system to write the number of bytes output so far into a variable, which can potentially lead to memory corruption.
    The crafted payload is sent to the target through the established connection.

Detection Logic:
    The script then checks the target's behavior in response to the payload.
    If the connection is abruptly terminated and an SSL alert is raised, it suggests that the target is vulnerable because it triggered the format string vulnerability protection mechanisms (e.g., _FORTIFY_SOURCE in glibc).
    If the connection remains open, the target is likely patched.

Usage Instructions

Run the Script:
    Run the script with Python 3 by executing:

    sh

python check_vulnerability.py

Enter Hostname/IP:

You will be prompted to enter a hostname or IP address to check if it is vulnerable.
If you want to stop, type exit.

Output:

If the target is vulnerable, the script will output:

[!] Warning: is vulnerable!

If the target is patched, it will output:

    [+] <hostname> appears to be patched.

Requirements

Python 3 installed on the machine running the script.
Network access to the target device, ensuring port 541 is open.
The FGFM service must be running on the target device.
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.

    516
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

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

    355
  • 4

    redforge

    cybersecurity91/redforge

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

    315
  • 5

    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.

    303
  • 6

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    285

Explore all tools

Browse our collection of tools

View all tools →