Closed (fixed)
Project:
Scheduler
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Mar 2012 at 21:46 UTC
Updated:
11 May 2013 at 18:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
jonathan1055 commentedHello,
Yes you are right, anon users can run the scheduler lightweight cron and I'm sure that is not intentional. I'll test the patch. The same fault is in the D6 version, so we should fix both.
Thanks for spotting this!
Jonathan
Comment #2
jonathan1055 commentedJust tested the patch, and you fixed the access to /admin/config/content/scheduler/cron
But running the cron via /scheduler/cron also needs to be fixed. The attached patch does both.
Comment #3
cntlscrut commentedThat looks good. The only reason that i didn't remove the callback for "/scheduler/cron" was because i saw the use of being able to add a call to that in the crontab that wouldn't call the full drupal cron functionality if it wasn't necessary.
My main issue was just with the admin functionality of being able to trigger the run via a button being exposed to anon users.
Though the liteweight cron is nice though, the drupal cron is already set and tested as secure and even in larger instances shouldn't pose a significant performance risk.
Looking at and testing the patch I don't see any major reason not to commit and tag a new release.
Comment #4
jonathan1055 commentedLooking at #431776: Cron should run as anonymous when invoked via the run-cron link on the status report page and #793590: Switch to the anonymous user when running cron it seems that cron jobs should be executed as an anonymous user, and you were right not to remove the 'access callback' => TRUE from /scheduler/cron/
Hence the patch to be applied is the original at the top of this issue, not my patch in #2. Does anyone else want to confirm my understanding of this, and then mark it RTBC?
Jonathan
Comment #5
eric-alexander schaefer commentedCommited: http://drupalcode.org/project/scheduler.git/commit/635b7a3
Comment #7
jonathan1055 commentedI think this patch should be ported to D6 because scheduler_menu() is the same.
Comment #8
jonathan1055 commentedHere is the patch for D6, to block anon users from reaching /admin/settings/scheduler/cron
Comment #9
fizk commented#8 works in 6.x-1.x HEAD. Please commit so we can release 6.x-1.9.
Comment #10
rickmanelius commentedHi Jonathan and fizk.
This was committed http://drupalcode.org/project/scheduler.git/commit/bd3a1ff