Sabado 05 Diciembre 2026 21:20:37 GMT+01:00

Netcrook

InicioManifiesto
Noticias
Techcrook
Geocrook
WikicrookEquipoAppContacto
EnglishItaliano

WIKICROOK

REST API permission callback

A WordPress control that decides whether a request is allowed to use an endpoint.

A REST API permission callback is a WordPress function that checks whether a request may access a registered REST endpoint. It runs as part of route handling and should return an authorization decision based on the requester, required capability, and any relevant conditions. It is separate from validating or sanitizing the request’s input.

This check matters because an exposed endpoint can perform sensitive actions or reveal data. If its permission callback allows access too broadly—or is missing or incorrectly configured—an unauthenticated or low-privilege requester may reach functionality intended for administrators. In an attack, a poorly protected route could provide a path to unauthorized changes or, if combined with dangerous code, server-side command execution. Developers should enforce least privilege in each callback, and defenders reviewing plugins should inspect registered routes and test their access controls.

← índice WIKICROOK