A fast and efficient CORS (Cross-Origin Resource Sharing) vulnerability scanner written in Rust.
- 🔍 Scans for CORS misconfigurations
- 🌐 Web crawling capability
- ⚡ Parallel request processing
- 🔒 SSL/TLS support with rustls
- 📝 Detailed verbose output mode
- ⏱️ Configurable timeout
- 📋 Support for URL lists from file
- 🎨 Colored output for better readability
- 🔗 Multiple link type detection (a, link, script, img, form)
- Clone the repository:
git clone https://github.com/MorphyKutay/corrssy.git
cd corrssy
- Build the project:
cargo build --release
- The binary will be available at
target/release/corrssy
Scan a single URL:
corrssy -u https://example.com
Scan URLs from a file:
corrssy -r urls.txt
Crawl a website and check all found links for CORS vulnerabilities:
corrssy -c -u https://example.com
Crawl with verbose output:
corrssy -c -u https://example.com -v
-u, --url <URL>
Target URL to scan-r, --file <file>
File containing list of URLs-v, --verbose
Verbose output mode-t, --timeout <sec>
Timeout in seconds (default: 5)-c, --crawl
Crawl mode-h, --help
Show help message
Verbose mode with custom timeout:
corrssy -u https://example.com -v -t 10
Crawl mode with verbose output:
corrssy -c -u https://example.com -v
Scan multiple URLs from file with crawl mode:
corrssy -c -r urls.txt -v
- Access-Control-Allow-Origin header
- Access-Control-Allow-Credentials header
- Access-Control-Allow-Methods header
- Wildcard (*) CORS policies
- Origin validation
The crawler can detect links from various HTML elements:
<a>
tags (href attribute)<link>
tags (CSS, favicon, etc.)<script>
tags (JavaScript files)<img>
tags (Images)<form>
tags (Form actions)
Crawling URL: https://example.com
Found 5 unique links to check
Origin: https://evil.com
Access-Control-Allow-Origin found:
Value: https://evil.com
✅ Origin is properly validated.
If you encounter SSL/TLS issues:
- Try using verbose mode (
-v
) to see detailed error messages - Increase the timeout value (
-t
) if the site is slow to respond - Try a different URL if the site has bot protection
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
- MorphyKutay
- Thanks to all contributors
- Inspired by various CORS security tools