Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
theme system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Jun 2015 at 21:56 UTC
Updated:
22 Jun 2015 at 17:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
star-szrWorking on this at NHDevDays 2.
Comment #2
star-szrComment #4
star-szrReal time feedback from @cwells, new patch.
Comment #5
dawehnerSure, this is fair
Comment #6
xjmSo, technically, if someone passes
<script>in the$html_tagswhen they call this, then the XSS has been filtered. I think this is actually more like #2273925-256: Ensure #markup is XSS escaped in Renderer::doRender(). Also, I think we should emphasize why callingSafeMarkup::set()is correct rather than just acceptable.Also, this is minor, but the regex is still doing some of the sanitization, so "by now" is slightly misleading I think.
So something like:
Or something along those lines. Try to improve it from that probably. :)
Comment #7
xjmOr something like:
Comment #8
star-szrThanks @xjm, I added some more to your suggestion in #7.
Comment #10
star-szrRunning out of brain steam ;)
Comment #11
pwolanin commentedLooks ok to me, though we should make it harder for people to allow stupid things like SCRIPT, IFRAME, or OBJECT in the UI
Comment #12
joelpittetPerfect, very thorough.
@pwolanin Maybe you could make a follow up but I believe we should let people shoot themselves in the foot sometimes and not mollycoddle them.
Comment #13
xjmGreat, thanks @joelpittet and @pwolanin!
The use is internal to Drupal's sanitization APIs, and we've had a member of the sec team check over this patch, so I think this is good as one of the "Document" issues. We could possibly use a followup about Xss more generally for #11.
This issue only changes documentation, so per https://www.drupal.org/core/beta-changes, this can be completed any time during the Drupal 8 beta phase. It's also part of resolving a critical issue. Committed and pushed to 8.0.x.
Comment #15
David_Rothstein commentedSee #275811: Warn about potentially insecure filter configurations