Require nonce and capability checks in sensitive WordPress mutation callbacks
WordPress admin/AJAX mutation callbacks should verify nonce tokens and enforce capability checks.
#Metadata
#Why it matters
Missing nonce or authorization checks let attackers trigger privileged actions through forged or unauthorized requests.
#Remediation
Add nonce verification (`check_ajax_referer`/`check_admin_referer`) and explicit capability checks (`current_user_can`) before performing mutations.
#Repository path
The generated metadata points to critiq-rules/libs/rules/catalog/rules/php/php.security.wordpress-missing-nonce-or-capability.rule.yaml.