Grav
Grav API Plugin: Webhook SSRF via Unrestricted cURL Protocols
Grav API Plugin is a RESTful API for Grav CMS that provides full headless access to your site's content. Prior to 1.0.6, the Grav API plugin WebhookController.php accepts webhook URLs after only FILTER_VALIDATE_URL syntax validation, and WebhookDispatcher.php initializes cURL without CURLOPT_PROTOCOLS or CURLOPT_REDIR_PROTOCOLS restrictions. An account with api.webhooks.write can submit file, dict, gopher, private-network, or link-local targets, retrieve local files and delivery response bodies, and pivot requests to internal services or cloud metadata endpoints. This issue is fixed in version 1.0.6.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.0.4
Fixed in 2.0.4
- < 1.0.6
Fixed in 1.0.6
Mitigation
Upgrade grav to 2.0.4 or later.
Upgrade grav-plugin-api to 1.0.6 or later.
References
- Vendor advisory github.com/getgrav/grav/security/advisories/GH…
- Patch github.com/getgrav/grav-plugin-api/commit/dfcc…
- Release notes github.com/getgrav/grav-plugin-api/releases/ta…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.