HTTP API Ssrf Prevention

Use when a plugin or theme makes outbound HTTP requests with the WordPress HTTP API - wp_remote_get, wp_remote_post, wp_remote_request - especially when any part of the URL comes from user input, options, or webhooks. Uses wp_safe_remote_* with wp_http_validate_url, allowlists hosts, blocks internal and metadata addresses, and checks is_wp_error plus the response code. Prevents server-side request forgery.

wpultimatesecurity 21b0866 3 files · 11.2 KB Updated

File contents

wpultimatesecurity/WordPress-Security-Skills/tree/main/skills/http-api-ssrf-prevention commit 21b0866c64

Frequently asked questions

npx skillmds@latest add wpultimatesecurity/http-api-ssrf-prevention