Commit a8139d86 authored by Hanno Schlichting's avatar Hanno Schlichting Committed by GitHub

Merge pull request #67 from zopefoundation/apply-plone-hotfix-20160830-213

Quote variables in manage_tabs and manage_container to avoid XSS [2.13]
parents 1159dfd8 39d6f9fb
...@@ -8,6 +8,9 @@ http://docs.zope.org/zope2/ ...@@ -8,6 +8,9 @@ http://docs.zope.org/zope2/
2.13.25 (unreleased) 2.13.25 (unreleased)
-------------------- --------------------
- Quote variables in manage_tabs and manage_container to avoid XSS.
From Products.PloneHotfix20160830. [maurits]
- Add a dependency on the empty `Products.TemporaryFolder` project. - Add a dependency on the empty `Products.TemporaryFolder` project.
- Add a dependency on the empty `Products.Sessions` project. - Add a dependency on the empty `Products.Sessions` project.
......
...@@ -16,35 +16,35 @@ ...@@ -16,35 +16,35 @@
<table cellpadding="0" cellspacing="0" width="100%" border="0"> <table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr> <tr>
<td bgcolor="#000000" rowspan="5" width="10%" valign="bottom" <td bgcolor="#000000" rowspan="5" width="10%" valign="bottom"
align="left">&nbsp;&nbsp;<img src="&dtml-BASEPATH1;/p_/sp" align="left">&nbsp;&nbsp;<img src="&dtml-BASEPATH1;/p_/sp"
width="2" height="1" alt="" /> width="2" height="1" alt="" />
</td> </td>
<td bgcolor="#000000" colspan="<dtml-var "4 * (n_ + 1)">"><img <td bgcolor="#000000" colspan="<dtml-var "4 * (n_ + 1)">"><img
src="&dtml-BASEPATH1;/p_/sp" width="1" height="5" alt="" /></td> src="&dtml-BASEPATH1;/p_/sp" width="1" height="5" alt="" /></td>
</tr> </tr>
<tr> <tr>
<dtml-in manage_options> <dtml-in manage_options>
<dtml-if "_['sequence-index']==a_"> <dtml-if "_['sequence-index']==a_">
<td bgcolor="#ffffff" rowspan="2" valign="top" <td bgcolor="#ffffff" rowspan="2" valign="top"
align="left"><img src="&dtml-BASEPATH1;/p_/ltab" width="5" align="left"><img src="&dtml-BASEPATH1;/p_/ltab" width="5"
height="5" alt="" /></td> height="5" alt="" /></td>
<td bgcolor="#ffffff"><img src="&dtml-BASEPATH1;/p_/sp" <td bgcolor="#ffffff"><img src="&dtml-BASEPATH1;/p_/sp"
width="1" height="2" alt="" /></td> width="1" height="2" alt="" /></td>
<td bgcolor="#ffffff" rowspan="2" valign="top" <td bgcolor="#ffffff" rowspan="2" valign="top"
align="right"><img src="&dtml-BASEPATH1;/p_/rtab" width="5" align="right"><img src="&dtml-BASEPATH1;/p_/rtab" width="5"
height="5" alt="" /></td> height="5" alt="" /></td>
<td bgcolor="#000000" rowspan="4"><img src="&dtml-BASEPATH1;/p_/sp" <td bgcolor="#000000" rowspan="4"><img src="&dtml-BASEPATH1;/p_/sp"
width="2" height="1" alt="" /></td> width="2" height="1" alt="" /></td>
<dtml-else> <dtml-else>
<td bgcolor="#efefef" rowspan="2" valign="top" <td bgcolor="#efefef" rowspan="2" valign="top"
align="left"><img src="&dtml-BASEPATH1;/p_/ltab" width="5" align="left"><img src="&dtml-BASEPATH1;/p_/ltab" width="5"
height="5" alt="" /></td> height="5" alt="" /></td>
<td bgcolor="#efefef"><img src="&dtml-BASEPATH1;/p_/sp" <td bgcolor="#efefef"><img src="&dtml-BASEPATH1;/p_/sp"
width="1" height="2" alt="" /></td> width="1" height="2" alt="" /></td>
<td bgcolor="#efefef" rowspan="2" valign="top" <td bgcolor="#efefef" rowspan="2" valign="top"
align="right"><img src="&dtml-BASEPATH1;/p_/rtab" width="5" align="right"><img src="&dtml-BASEPATH1;/p_/rtab" width="5"
height="5" alt="" /></td> height="5" alt="" /></td>
<td bgcolor="#000000" rowspan="4"><img src="&dtml-BASEPATH1;/p_/sp" <td bgcolor="#000000" rowspan="4"><img src="&dtml-BASEPATH1;/p_/sp"
width="2" height="1" alt="" /></td> width="2" height="1" alt="" /></td>
...@@ -55,8 +55,8 @@ ...@@ -55,8 +55,8 @@
<dtml-in manage_options mapping> <dtml-in manage_options mapping>
<dtml-let s_item=sequence-item s_index=sequence-index> <dtml-let s_item=sequence-item s_index=sequence-index>
<dtml-if "s_index==a_"> <dtml-if "s_index==a_">
<td bgcolor="#ffffff" valign="bottom" class="tab-small" <td bgcolor="#ffffff" valign="bottom" class="tab-small"
align="center"><font face="Verdana, Arial, Helvetica" align="center"><font face="Verdana, Arial, Helvetica"
size="1" color="#000000">&nbsp;<a <dtml-if "s_item.get('action')" size="1" color="#000000">&nbsp;<a <dtml-if "s_item.get('action')"
>href="&dtml-action;"<dtml-else >href="&dtml-action;"<dtml-else
>href="<dtml-var "REQUEST.URL1" html_quote>"</dtml-if >href="<dtml-var "REQUEST.URL1" html_quote>"</dtml-if
...@@ -64,8 +64,8 @@ ...@@ -64,8 +64,8 @@
>><span style="color: #000000;"><strong><dtml-var "s_item['label']" >><span style="color: #000000;"><strong><dtml-var "s_item['label']"
></strong></span></a>&nbsp;</font></td> ></strong></span></a>&nbsp;</font></td>
<dtml-else> <dtml-else>
<td bgcolor="#efefef" valign="bottom" class="tab-small" <td bgcolor="#efefef" valign="bottom" class="tab-small"
align="center"><font face="Verdana, Arial, Helvetica" align="center"><font face="Verdana, Arial, Helvetica"
size="1" color="#000000">&nbsp;<a <dtml-if "s_item.get('action')" size="1" color="#000000">&nbsp;<a <dtml-if "s_item.get('action')"
>href="&dtml-action;"<dtml-else >href="&dtml-action;"<dtml-else
>href="<dtml-var "REQUEST.URL1" html_quote>"</dtml-if >href="<dtml-var "REQUEST.URL1" html_quote>"</dtml-if
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
<td align="left" valign="top"> <td align="left" valign="top">
<div class="std-text"> <div class="std-text">
<dtml-if icon> <dtml-if icon>
<img src="&dtml-BASEPATH1;/&dtml-icon;" <img src="&dtml-BASEPATH1;/&dtml-icon;"
alt="&dtml-meta_type;" border="0" /> alt="&dtml-meta_type;" border="0" />
</dtml-if> </dtml-if>
<strong> <strong>
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
&dtml-meta_type; &dtml-meta_type;
<dtml-else> <dtml-else>
Object Object
</dtml-if> </dtml-if>
at <dtml-var expr="tabs_path_default(REQUEST)"> at <dtml-var expr="tabs_path_default(REQUEST)">
</strong> </strong>
<dtml-if wl_isLocked> <dtml-if wl_isLocked>
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
<dtml-if manage_tabs_message> <dtml-if manage_tabs_message>
<div class="system-msg"> <div class="system-msg">
<dtml-var manage_tabs_message newline_to_br> <dtml-var manage_tabs_message newline_to_br html_quote>
(<dtml-var ZopeTime fmt="%Y-%m-%d %H:%M">) (<dtml-var ZopeTime fmt="%Y-%m-%d %H:%M">)
</div> </div>
</dtml-if> </dtml-if>
......
...@@ -38,7 +38,7 @@ Transient data will persist, but only for a user-specified period of time ...@@ -38,7 +38,7 @@ Transient data will persist, but only for a user-specified period of time
</div> </div>
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
<input type="text" name="title" size=30 value="&dtml-title;"> <input type="text" name="title" size=30 value='<dtml-var name="title" html_quote>'>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -52,7 +52,7 @@ Transient data will persist, but only for a user-specified period of time ...@@ -52,7 +52,7 @@ Transient data will persist, but only for a user-specified period of time
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
<input type="text" name="timeout_mins:int" size=10 <input type="text" name="timeout_mins:int" size=10
value=&dtml-getTimeoutMinutes;> value='<dtml-var name="getTimeoutMinutes" html_quote>'>
</td> </td>
</tr> </tr>
...@@ -72,7 +72,7 @@ Transient data will persist, but only for a user-specified period of time ...@@ -72,7 +72,7 @@ Transient data will persist, but only for a user-specified period of time
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
<input type="text" name="period_secs:int" size=10 <input type="text" name="period_secs:int" size=10
value=&dtml-getPeriodSeconds;> value='<dtml-var name="getPeriodSeconds" html_quote>'>
</td> </td>
</tr> </tr>
...@@ -87,7 +87,7 @@ Transient data will persist, but only for a user-specified period of time ...@@ -87,7 +87,7 @@ Transient data will persist, but only for a user-specified period of time
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
<input type="text" name="limit:int" size=10 <input type="text" name="limit:int" size=10
value=&dtml-getSubobjectLimit;> value='<dtml-var name="getSubobjectLimit" html_quote>'>
</td> </td>
</tr> </tr>
...@@ -102,7 +102,7 @@ Transient data will persist, but only for a user-specified period of time ...@@ -102,7 +102,7 @@ Transient data will persist, but only for a user-specified period of time
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
<input type="text" name="addNotification" <input type="text" name="addNotification"
value="&dtml-getAddNotificationTarget;" size=40> value='<dtml-var name="getAddNotificationTarget" html_quote>' size=40>
</td> </td>
</tr> </tr>
...@@ -117,7 +117,7 @@ Transient data will persist, but only for a user-specified period of time ...@@ -117,7 +117,7 @@ Transient data will persist, but only for a user-specified period of time
</td> </td>
<td align="left" valign="top"> <td align="left" valign="top">
<input type="text" name="delNotification" <input type="text" name="delNotification"
value="&dtml-getDelNotificationTarget;" size=40> value='<dtml-var name="getDelNotificationTarget" html_quote>' size=40>
</td> </td>
</tr> </tr>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment