
CVE-2022-37122 Path Traversal Scanner
A robust and feature-rich scanner for detecting the Carel pCOWeb logdownload.cgi path traversal vulnerability (CVE-2022-37122). Designed for security researchers and authorized penetration testers.
EDUCATIONAL / BUG BOUNTY USE ONLY
This tool is intended for:
DO NOT use this tool against systems you do not own or lack explicit written permission to test.
/etc/hostname (non-sensitive file) for responsible testingbash (v4.0+)curlfiglet (for banner - automatically installed)git clone https://github.com/bughuntar/cve-2022-37122-scanner.git
cd cve-2022-37122-scanner
chmod +x cve-2022-37122-scanner.sh
./cve-2022-37122-scanner.sh -u http://target-ip
./cve-2022-37122-scanner.sh -f targets.txt -t 16 -o results.csv
./cve-2022-37122-scanner.sh \
-u https://device.local \
-p '../../../../../../../../etc/passwd' \
--insecure \
-v \
-t 20 \
-o detailed_findings.csv
The scanner generates a CSV file with the following columns:
host: Target host URLurl: Full exploitation URLstatus: Vulnerability status (VULNERABLE, POSSIBLE, NOT_DETECTED, ERROR)matched_pattern: Detection pattern matchedsample_file: Path to response sampleResponse samples are saved in the specified directory for manual verification and evidence collection.
The scanner uses multiple detection methods:
The scanner defaults to reading /etc/hostname which:
If using custom payloads, ensure:
This tool demonstrates:
Professor the Hunter
Contributions are welcome! Please:
This tool is provided for educational and authorized testing purposes only. The author is not responsible for any misuse or damage caused by this program. Always obtain proper authorization before conducting security testing.
| Option | Description | Default |
|---|
-u, --url URL | Single target URL | - |
-f, --file FILE | File containing target URLs | - |
-o, --output FILE | Output CSV file | findings.csv |
-s, --samples-dir DIR | Directory for response samples | samples |
-t, --threads N | Number of concurrent threads | 8 |
-p, --payload STR | Path traversal payload | /etc/hostname |
--insecure | Ignore SSL certificate errors | - |
-v, --verbose | Verbose output | - |
-h, --help | Show help message | - |