Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2024-21762 PoC — Fortinet FortiOS 缓冲区错误漏洞

Source
Associated Vulnerability
Title:Fortinet FortiOS 缓冲区错误漏洞 (CVE-2024-21762)
Description:Fortinet FortiOS是美国飞塔(Fortinet)公司的一套专用于FortiGate网络安全平台上的安全操作系统。该系统为用户提供防火墙、防病毒、IPSec/SSLVPN、Web内容过滤和反垃圾邮件等多种安全功能。 Fortinet FortiOS存在缓冲区错误漏洞,该漏洞源于存在越界写入,允许攻击者通过特制请求执行未经授权的代码或命令。
Readme
# FortiGate cve-2024-21762-checker
This script is used to check for vulnerabilities in Fortigate SSL VPNs based on CVE-2024-21762. It uses Shodan to find vulnerable devices and test their vulnerability.

## Features
- Uses Shodan API to find Fortigate devices running SSL VPN on port 10443.
- Checks the vulnerability status of the devices.
- Flexible shodan queries
- Displays the result with additional information such as organization and country.

## Requirements
- Python 3.x
- Shodan API Key

## Installation
1. Clone this repository:
    ```bash
    git clone https://github.com/rdoix/cve-2024-21762-checker.git
    cd cve-2024-21762-checker
    ```

2. Install dependencies:
    ```bash
    pip install -r requirements.txt
    ```

3. Set Shodan API Key as an environment variable:
    ```bash
    export SHODAN_API_KEY="YOUR_SHODAN_API_KEY"
    ```

## Usage
Run the script with the following command:
```bash
python3 cve-2024-21762-checker.py
```

## Example Output
```
1.1.1.1 | ABC Company | Indonesia | Vulnerable
1.1.2.2 | XYZ Corporation | United States | Patched
```
File Snapshot

[4.0K] /data/pocs/33d17f126376b8637a9dc6a737820a05994bc6d3 ├── [2.3K] cve-2024-21762-checker.py ├── [1.1K] README.md └── [ 16] requirements.txt 0 directories, 3 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.