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-2024-21762-Safe-Check — Safe, non-intrusive scanner that detects FortiOS SSL VPN out-of-bounds write vulnerability (CVE-2024-21762) by comparing normal and chunked HTTP POST responses. | Kitploit
Tools/GitHubGitHub/sxmpl3/cve-2024-21762-safe-check
Vulnerability AnalysisExploitationInformation GatheringWeb SecurityNetwork SecurityPenetration Testing
GitHubsxmpl3/cve-2024-21762-safe-check

CVE-2024-21762-Safe-Check

Safe, non-intrusive scanner that detects FortiOS SSL VPN out-of-bounds write vulnerability (CVE-2024-21762) by comparing normal and chunked HTTP POST responses.

View Repository
2 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-2024-21762 - FortiOS SSL VPN Out-of-Bounds Write

Overview

FieldValue
CVECVE-2024-21762
AdvisoryFG-IR-24-015
CVSS9.8 (Critical)
CWECWE-787 (Out-of-bounds Write)
CISA KEVYes - actively exploited in the wild
Attack VectorNetwork (unauthenticated)
Affected Componentsslvpnd (SSL VPN daemon)

Description

An out-of-bounds write vulnerability in FortiOS SSL VPN allows a remote unauthenticated attacker to execute arbitrary code or commands via specially crafted HTTP requests. The vulnerability exists in the HTTP chunked transfer encoding parser within sslvpnd. When the daemon receives a POST request with Transfer-Encoding: chunked, it fails to properly validate chunk sizes, causing an out-of-bounds write in the heap.

Affected Versions

BranchAffectedFixed
FortiOS 7.47.4.0 - 7.4.27.4.3
FortiOS 7.27.2.0 - 7.2.67.2.7
FortiOS 7.07.0.0 - 7.0.137.0.14
FortiOS 6.46.4.0 - 6.4.146.4.15
FortiOS 6.26.2.0 - 6.2.156.2.16
FortiOS 6.0All versionsMigrate

Safe Check Methodology

The script compares the server response to a normal POST request vs a POST request with Transfer-Encoding: chunked to the same valid endpoint (/remote/logincheck).

  • Normal POST with Content-Length: Server processes the request and returns an HTTP response (200 OK).
  • Chunked POST with Transfer-Encoding: chunked: On vulnerable versions, sslvpnd cannot handle chunked encoding and closes the connection without responding (0 bytes).

This differential behavior confirms the vulnerability without triggering the actual out-of-bounds write.

root@kitploit:~
Normal POST  --> HTTP/1.1 200 OK (N bytes)
Chunked POST --> Connection closed (0 bytes)   <-- VULNERABLE

Normal POST  --> HTTP/1.1 200 OK (N bytes)
Chunked POST --> HTTP/1.1 200 OK (N bytes)     <-- PATCHED

Usage

root@kitploit:~
python cve_2024_21762_safecheck.py <host> <port>

Example

root@kitploit:~
$ python cve_2024_21762_safecheck.py 10.0.0.1 8443

[*] Target: 10.0.0.1:8443
[*] CVE-2024-21762 - Out-of-Bounds Write in sslvpnd (CVSS 9.8)
[*] Method: Compare normal POST vs chunked POST response

[*] Test 1: Normal POST to /remote/logincheck
    Response: HTTP/1.1 200 OK
    Size: 722 bytes

[*] Test 2: Chunked POST to /remote/logincheck
    Response: empty (connection closed by server)

============================================================
[!] VULNERABLE to CVE-2024-21762
    Normal POST works but chunked TE causes connection
    drop -> sslvpnd cannot handle chunked TE
    Severity: CRITICAL (CVSS 9.8)
    CISA KEV: Yes (actively exploited in the wild)
============================================================

Possible Results

ResultMeaning
VULNERABLENormal POST responds, chunked POST drops connection
PATCHEDBoth requests receive HTTP response
INCONCLUSIVENeither request got a response (rate limiting active, retry later)

Notes

  • This check does not exploit the vulnerability. It only detects the differential behavior in the HTTP parser.
  • The target may activate rate limiting after multiple POST requests to /remote/logincheck. If you get INCONCLUSIVE, wait a few minutes and retry.
  • Some third-party scripts (e.g. BishopFox check) use /remote/VULNCHECK as endpoint. That path may not return the expected 403 on all FortiGate versions, leading to unreliable results. This script uses /remote/logincheck which is a known valid SSL VPN endpoint.

References

  • Fortinet Advisory FG-IR-24-015
  • CISA KEV Entry
  • NVD - CVE-2024-21762
Download Tool