Problem/Motivation
The entity.ultimate_cron_job.unlock route is not protected against CSRF attacks.
Steps to reproduce
As an user that can post content, add this HTML in a page:
<img src="http://example.com/admin/config/system/cron/jobs/ultimate_cron_queue_locale_translation/unlock">
As another user with the "run cron jobs" permission, display this page: the job is unlocked without any confirmation.
Proposed resolution
Add the _csrf_token: 'TRUE' requirement to this route.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork ultimate_cron-3507396
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
dhruv.mittal commentedComment #4
dhruv.mittal commentedPlease review
Comment #7
berdirWorks fine, thanks.