The newly added $labels['form_label'] and $labels['section_label'] need to be escaped in the comment-wrapper.tpl.php template file.
To reproduce, switch to stark or any theme which does not override core's comment-wrapper.tpl.php and inject some XSS in either the Comment section label or the New comment form label on the content type edit form, such as Comments <script>alert('section')</script>.
Given that this vulnerability requires the 'administer content types' permission, it does not need to go through the regular security team process.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1436286-1.patch | 660 bytes | pwolanin |
Comments
Comment #1
pwolanin commentedshould be made safe in preprocess
Comment #2
pwolanin commentedscor confirmed in IRC that the fix looks right.
Comment #3
pwolanin commentedcommitted
Comment #4
jessebeach commentedIn the 7.x-1.x branch. To be included in an upcoming release.