Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views_ui.module
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
20 Mar 2013 at 20:46 UTC
Updated:
13 May 2015 at 13:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dstolHere's a potential patch from s.d.o. I am not the author of it. All the credit is due to grisendo
Comment #3
dawehnerRerolled that it can be committed.
Comment #4
galooph commentedRerolled so that it will apply - file locations have changed since the last patch.
Not too sure how this should be done now:
Do we use the striptags function in twig. I've done
<h3 class="views-ui-view-title views-table-filter-text-source">{{ title | striptags }}</h3>for now, but not sure if that's correct!Comment #6
galooph commented#4: drupal-1948418-4.patch queued for re-testing.
Comment #8
dawehnerInstead of check_plain() we should better use String::checkPlain().
Comment #10
galooph commentedThanks for the review, dawehner.
I've changed the patch to use String::checkPlain() and I've used it in template_preprocess_views_ui_view_info() to sanitise the title variable there, instead of in the twig template.
Comment #11
galooph commentedComment #12
xjmForward-porting an SA sounds critical.
Comment #13
xjmComment #14
dawehnerI wonder whether we actually still needs due the fact that auto-espacing landed in core.
Comment #15
cilefen commentedComment #16
martin107 commentedFrom #14 I suspect @dawehner might be correct, but don't want the "Needs roll" tags to slow up the review process, on an already slow moving critical.
Comment #18
martin107 commentedFixed up 2 things.
Comment #21
amitgoyal commentedReroll of #18.
Comment #23
cilefen commentedI am not sure how this was supposed to work.
Comment #24
catchTagging with D8 upgrade path, see issue summary of #2341575: [meta] Provide a beta to beta/rc upgrade path for why.
Comment #25
xjmComment #26
gaurav.goyal commentedPatch needs a reroll, changing the status to needs work and adding the tag Needs reroll
Comment #27
gaurav.goyal commentedPatch rerolled,
Thanks a ton @cilefen for mentoring me on this reroll.
Removing needs reroll tag.
Comment #28
xjmSo we need to:
In #3, we've discussed elsewhere that we should actually be removing early
checkPlain()calls, so my recommendation would be to add only the test in that case.Comment #29
chx commentedComment #30
webflo commentedBuild a view in standard profile that exposes the vulnerabilities. But D8 is atm not vulnerable because some of this is nuked by twig autoescape and also
HandlerBase::adminLabelcontains a call toString::checkPlain.Comment #31
webflo commentedThe test proves that Views UI is not vulnerable to SA-CONTRIB-2013-035. But it shows another bug, we double escape the admin labels in views ui.
Comment #33
webflo commentedComment #35
webflo commentedThe exported view was not valid because the Views Wizard added fields without plugin_id to the view.
Comment #36
jibranComment #37
dawehnerMore marquee!
The follow up is filled, so let's get this one in.
Have you considered to check for
String::checkPlain('actual-readable-string')instead?Comment #38
alexpottCommitted 6efeaf7 and pushed to 8.0.x. Thanks!
Comment #41
jcnventura@webflo, you missed something #2473907: Tests not being run by testbot due to missing summary line