Skip to content

Security: Recommend wp_safe_remote_*() when wp_remote_*() is used #1288

Open
@JDGrimes

Description

@JDGrimes

The wp_remote_*() functions (like wp_remote_get()) do not validate the passed URL, resulting in the possibility for malicious requests if the $url is user-controlled. The wp_safe_remote_*() functions should be instead, since "the URL is validated to avoid redirection and request forgery attacks."

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions