Mercurial > p > roundup > code
diff website/issues/html/issue.item.html @ 8356:63390dcfcfe9
bug: fix template use of structure with untrusted data
Looks like an xSS bug with an early version of the template that was
fixed in the code but never in the deployed tracker. It has been a
while since this particular construct has been in the classic template
which is the base for the tracker.
This has been fixed on the deployed tracker as well.
reported by 4bug of ChaMd5 Security Team H1 Group
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 08 Jul 2025 10:23:09 -0400 |
| parents | 12c5ddf865b1 |
| children | abf1297e7a94 |
line wrap: on
line diff
--- a/website/issues/html/issue.item.html Thu Jul 03 13:33:59 2025 -0400 +++ b/website/issues/html/issue.item.html Tue Jul 08 10:23:09 2025 -0400 @@ -45,7 +45,7 @@ <td colspan="3" tal:condition="context/title/is_edit_ok" tal:content="structure python:context.title.field(id='title', size=60)">title</td> <td colspan="3" tal:condition="not:context/title/is_edit_ok"> - <span tal:content="structure context/title/plain"/> + <span tal:content="context/title/plain"/> <input type="hidden" name="title" tal:attributes="value context/title"> </td> </tr>
