Actions
Feature #26114
closedTighten plugin-hiding mechanisms
Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
WordPress (misc)
Target version:
Start date:
2026-11-17
Due date:
% Done:
0%
Estimated time:
Deployment actions:
Description
As reported in #26096, it's possible to bypass our "hidden" plugin mechanism. The user did it using the REST API, but it can also be done with bulk actions and direct modification of the REQUEST payload. Let's lock this down.
Updated by Boone Gorges 8 days ago
- Category name set to WordPress (misc)
- Status changed from New to Staged for Production Release
- Assignee set to Boone Gorges
https://github.com/cuny-academic-commons/cac/commit/1cf84056c0d0cf0019c05b8927c0f32abdd041a4 fixes this in a couple ways. First, it removes the 'activate_plugin' cap from non-super-admins for any hidden plugin. This is the primary mechanism, and blocks the bulk-action interface, the REST API, and anything else that passes through the 'active_plugin' cap. Second, it ensures that the hidden plugins are not even shown in the REST API endpoint wp/v2/plugins.
Updated by Boone Gorges about 21 hours ago
- Status changed from Staged for Production Release to Resolved
Actions