j0k3r/httplug-ssrf-plugin
HTTPlug plugin to mitigate SSRF by validating URL parts against configurable allow/deny lists. Resolves hostnames to IPs, blocks private networks by default, and restricts schemes to HTTP/HTTPS. Throws InvalidURLException on invalid targets.
$client = new PluginClient($baseClient, [new SsrPlugin()]);
Http facade or middleware cannot enforce this automatically; wrapper classes or service provider bindings are needed.GA tooling) but no production dependencies. No immediate risk to integration.Http facade or route caching. Custom facades/service providers remain necessary.AppServiceProvider remains the recommended approach.httplug/httplug v2.x/v3.x.redis://).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Plugin misconfiguration | Legitimate requests blocked | Unit tests with positive/negative cases |
| Rule bypass (e.g., new SSRF vector) | Security vulnerability | Subscribe to security bulletins; update rules |
| Plugin crashes | HTTP client failures | Graceful degradation (e.g., skip plugin) |
| Log overload | Monitoring system saturation | Rate-limit logs; aggregate blocked requests |
SECURITY.md with SSRF rules and examples.NO_UPDATE_NEEDED
How can I help you explore Laravel packages today?