broken access control in wp recipe maker 10.9.2, how i found it and how to test yours
Patchstack advisory: WordPress WP Recipe Maker Plugin <= 10.9.2 is vulnerable to Broken Access Control what shipped patchstack published the advisory. reported 4 Nov 2026. plugin: wp recipe maker, version 10.
Patchstack advisory: WordPress WP Recipe Maker Plugin <= 10.9.2 is vulnerable to Broken Access Control
what shipped
patchstack published the advisory. reported 4 Nov 2026.
plugin: wp recipe maker, version 10.9.2.
bug: broken access control.
fixed in: 10.9.3.
credit: benjamin kincses.
if you run the plugin, update. the rest is for builders.
the bug class, plain
access control answers one question: is this user allowed to do this action.
authentication answers a different one: is this user logged in.
this bug mixed them up. being logged in was treated as being allowed. a low privilege account could call an action that belongs to admins.
test setup
you need almost nothing:
- a local wordpress install with the plugin on the old version
- 1 admin account
- 1 subscriber account
- a proxy or just the browser dev tools to save the request no special tooling. if you cannot reproduce it with this setup, you do not have a finding yet.
reproduction, step by step
- log in as admin.
- do the privileged action in the plugin. save the full request.
- log out. log in as subscriber.
- replay the same request as subscriber.
- check the result, not just the status code. did the action actually happen. in the vulnerable version, it did. in 10.9.3, it does not. that before and after is the whole proof. note: exact endpoints and parameters are in the patchstack advisory. i am not adding anything past the public advisory here.
why nonce alone fails
wordpress nonces stop csrf. they do not check roles.
a subscriber can load pages that hand them valid nonces for things they should never do. if the handler checks the nonce and stops there, the door is open.
order that works: capability check first. nonce second. then the action.
the fix pattern
in php, before the action runs:
- check current_user_can with the smallest capability that fits the action. manage_options for admin settings, not a loose edit_posts if the action is admin level.
- if the check fails, stop. return an error. do not run part of the action first.
- repeat for every entry point: ajax, rest, and form posts. fixing one route and missing the ajax twin is the usual miss. then retest as subscriber. it must fail. retest as admin. it must still work.
audit your own plugin in 30 minutes
- list every ajax action and rest route your plugin registers.
- next to each, write the capability it should require.
- grep the handler. if there is no cap check in the handler or a permission callback, flag it.
- replay each one as subscriber.
- fix the ones that pass. retest. 30 minutes. this one pass finds this class faster than reading the whole codebase top to bottom.
timeline and credit
found in audit, reported through patchstack on 4 Nov 2026, fix in 10.9.3.
i ask for two things on every report: fair compensation where a program offers it, and name credit where it gets published. patchstack credited benjamin kincses on this one.
closing
boring bug. real impact. clean fix.
i hunt wordpress plugins and open source. proof first, report second, writeup after the fix. more of these are coming.
Patchstack advisory: WordPress WP Recipe Maker Plugin <= 10.9.2 is vulnerable to Broken Access Control
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.