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
Tools/GitHubGitHub/shahid-bugb/fortinet-cve-2024-50562
Vulnerability ScannersVulnerability AnalysisExploitationWeb SecurityPenetration TestingAuthentication
GitHubshahid-bugb/fortinet-cve-2024-50562

fortinet-cve-2024-50562

CVE-2024-50562 is a session management vulnerability in Fortinet SSL-VPN portals

View Repository
111 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

Fortinet SSL-VPN Session Reuse Vulnerability (CVE-2024-50562)

Python license

Professional, permission-only scanner that proves whether a FortiGate invalidates session cookies after logout.
A positive finding confirms CVE-2024-50562 — an Insufficient Session Expiration flaw (CWE-613) that lets an attacker replay a stolen cookie and log back in even after the user has explicitly logged out.

Official advisory: https://fortiguard.com/psirt/FG-IR-24-339


0 | Executive summary

“An Insufficient Session Expiration vulnerability [CWE-613] in FortiOS SSL-VPN may allow an attacker in possession of a cookie used to log in to the SSL-VPN portal to log in again, although the session has expired or was logged out.” — Fortinet PSIRT

IR NumberFG-IR-24-339
PublishedJun 10 2025
ComponentSSL-VPN
SeverityMedium
CVSS v34.4
ImpactImproper access control
CWE613 (Insufficient Session Expiration)
CVECVE-2024-50562
Affected modeWeb/portal mode only — Tunnel mode is not affected

Acknowledgements

Fortinet credits:

  • Vang3lis & Cyth – VARAS@IIE
  • Shahid Parvez Hakim – CEO & Founder, BugB Technologies (bugb.io)

Timeline

DateEvent
2025-06-10Initial public advisory (FG-IR-24-339)

1 | Affected & fixed versions

Product/BranchAffected versionsFirst fixed
FortiOS 7.67.6.07.6.1
FortiOS 7.47.4.0 – 7.4.77.4.8
FortiOS 7.27.2.0 – 7.2.107.2.11
FortiOS 7.0allmigrate to a fixed branch
FortiOS 6.4allmigrate to a fixed branch
FortiSASE 24.424.4.b24.4.c (auto-remediated)

Upgrade path helper: https://docs.fortinet.com/upgrade-tool


2 | How this scanner validates the bug

  1. Login to /remote/logincheck using test creds.
  2. Capture cookies (SVPNCOOKIE, SVPNTMPCOOKIE).
  3. Logout via /remote/logout.
  4. Replay captured cookies in a fresh session requesting /sslvpn/portal.html.
  5. Verdict
    • Portal still loads → REUSED → Vulnerable
    • Redirects to /remote/login → INVALIDATED → Patched

Console output is mirrored to a CSV for reporting.


3 | Quick start

root@kitploit:~
# Clone repository
git clone https://github.com/Shahid-BugB/fortinet-cve-2024-50562.git
cd fortinet-cve-2024-50562

# Install dependency
pip install requests     # only third-party lib needed

# Create a targets file
cat > targets.txt <<'EOF'
192.168.2.3:4433
192.168.2.44:4433
# default port example
192.168.2.44
EOF

# Run the scan
python3 fortinet-cve-2024-50562-new.py \
        -f targets.txt \
        -u alice \
        -p 'alice@!123'

4 | CLI reference

root@kitploit:~
usage: fortinet-cve-2024-50562-new.py [-h] -u USERNAME -p PASSWORD
                                      [-r REALM]
                                      [-t HOST[:PORT]] [-f FILE]
                                      [-o OUTPUT]
FlagPurposeExample
-u, --usernameVPN username (required)-u audit
-p, --passwordVPN password (required)-p 'Pa$$w0rd!'
-r, --realmRealm / auth domain (optional)-r employees
-t, --targetSingle host[:port] (repeatable). Default 443.-t 192.168.2.24:8443
-f, --fileFile with one host[:port] per line (blank lines & # comments ignored).-f targets.txt
-o, --outputCSV path (default fortinet_reuse_results.csv).-o scan.csv

5 | CSV fields explained

ColumnDescription
ip, portTarget gateway
login_successTrue if creds worked
vulnerability_statusREUSED = vulnerable • INVALIDATED = secure • auth-failed = bad creds/MFA
cookies_*JSON-encoded cookie dicts (forensics)
summaryDuplicate of status for quick filters

6 | Remediation checklist

  1. Upgrade to the fixed FortiOS/FortiSASE release.
  2. Mandate MFA on all SSL-VPN accounts.
  3. Reduce idle/session timeouts where feasible.
  4. Rotate credentials if compromise is suspected.
  5. Monitor logs for /remote/login & /sslvpn/portal.html from unfamiliar IPs.

7 | Legal & ethical use

This tool is provided solely for authorised security assessments. Running it against systems without written permission may violate local law (e.g., IT Act 2000, CFAA) and organisational policy. The authors accept no liability for misuse.


8 | Credits & licence

  • Authors — Security Team, BugB Technologies
  • Website - https://www.bugb.io
  • Licence — MIT

Pull requests & issues are warmly welcomed!

Download Tool