Tracker module allows any user to access /user/%uid/track pages by default.
That might be a potentially problem if content associated to user being tracked isn't in control or has the properly permissions, so sensitive content could be accesed easily in Track tab from a profile page.
Search engines show this link by default and allows access. A common SEO problem on Drupal sites is that search engines will index URL parameters that should not be indexed as /tracker or /user/*/track pages.
I attach this patch to limit theses access only for administrators and users who match with the tracking page being accessed (users are able to view their own Track activity).
I don't now if this is a valid approach, by anyway, thanks for your feedback.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | core-limit-tracker-access-2777445-1-D7.patch | 574 bytes | mercalia |
Comments
Comment #2
mercalia commentedComment #3
mercalia commentedComment #4
stefan.r commentedThis doesn't seem right -- why check against "administer nodes"? And what is the actual vulnerability here?
Reassigning to 8.2.x, as Drupal 8 still has the same access check.
Comment #6
petiar commentedI wanted to work on this within the DrupalCon 2016 sprint, however, I got confused a bit after a short investigation. Isn't the name of the module now Activity Tracker? Also the path reads
/user/{user}/activity(as per thetracker.routing.yml). I can't get theuser/{user}/trackpath to work in Drupal 8.3.Anyway, I still think there may be some problem. According the
tracker.routing.ymlthe permission to access the Activity tab is_permission: 'access content'. Although this permission is allowed for an anonymous (it's the View published content permission), anonymous user still can't access it.My suggestion would be to introduce a new permission for this path within the tracker module. I am happy to do that, however, I would like to get some opinion on that as I am new contributor and if any of my assumption is wrong, I'd be doing useless work.
Comment #14
hazit commentedI agree that this would be useful :-)
Comment #16
jasonluttrell+1 for this feature in Drupal 8/9.
Comment #17
bessonweb commented+1 also ! It seem logical to restrict the "user activity logs" to anonymous visitors.
Comment #20
avpadernoComment #23
quietone commentedThis extension is deprecated and scheduled for removal in Drupal 11.
This is now Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.
It will be moved to the contributed extension once the Drupal 11 branch is open.
Comment #25
andypostnow in contrib
Comment #26
batigolixThis is a duplicate of #2978468: Activity Tracker module does not allow to prevent anonymous users from seeing the users activity.
Comment #27
batigolix