Postponed
Project:
Drupal core
Version:
main
Component:
render system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Aug 2016 at 17:40 UTC
Updated:
29 Jul 2022 at 01:57 UTC
Jump to comment: Most recent
STR:
The link path for e.g. cron is:
/admin/reports/status/run-cron?destination=/admin/modules&token=96018d359c9699ebe12498ce963ef86765820ec1
An alternate STR is to delete the values from key_value_expire table and visit the modules page.
This bug affects user 1 and any administrative user
Since the cron link works on the status report page, this seems to be major, not critical.
Comments
Comment #2
pwolanin commentedComment #3
pwolanin commentedComment #4
pwolanin commentedSince the same cron route is correctly rendered on the status page, this is very odd.
Comment #5
pwolanin commentedComment #6
pwolanin commentedComment #7
pwolanin commentedThis seems to be a case where redner placeholders are not replaced
suing sha1 or the palceholder - there is an issue to fix all these to be sha256 also?
I think the problem boils down to the fact that in update.install the rendered URLs with placeholders are NOT wrapped in a render array, but the system.install version rendering the cron link for the status page is wrapping in a render array.
The placeholder is generated here and then shows up in the UI:
\Drupal\Core\Access\RouteProcessorCsrf::processOutbound
Comment #8
pwolanin commentedComment #9
pwolanin commentedWe should add a very findable string to all the render placeholders so we can check for them in automated tests
Comment #10
pwolanin commentedIt seems the url_generator service gives you a \Drupal\Core\Render\MetadataBubblingUrlGenerator which is why we end up in the else case \Drupal\Core\Access\RouteProcessorCsrf::processOutbound
Comment #11
dawehnerThis reads like a duplicate of #2630920: _csrf_token is broken due to cacheability metadata integration, results in rendered links without valid CSRF tokens
Comment #12
yesct commentedComment #13
xjm@lauriii, @Cottser, @joelpittet, @alexpott and I discussed this issue awhile back. While the bug is admin-facing and does have a workaround, it can actually prevent people from knowing that they have security updates available. So, based on that, we decided to keep it as major.
#2630920: _csrf_token is broken due to cacheability metadata integration, results in rendered links without valid CSRF tokens is already triaged as major as well, so if this turns out to indeed be resolved by that fix, then we are set there.
Comment #23
borisson_Does the comment in #13 mean that this is actually postponed on the other issue?
Comment #24
catchI think so yes, marking postponed.