]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 924802: (CVE-2013-1742) [SECURITY] (XSS) "id" and "sortkey" are not sanitized...
authorFrédéric Buclin <LpSolit@gmail.com>
Wed, 16 Oct 2013 17:15:28 +0000 (19:15 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 16 Oct 2013 17:15:28 +0000 (19:15 +0200)
r=dkl a=glob

template/en/default/admin/flag-type/edit.html.tmpl
template/en/default/filterexceptions.pl

index b9ad2a5355feb6665d23e73f16afe79e62229b16..2e9771384d7bad022c61e61d73357f449bbc64f4 100644 (file)
@@ -36,7 +36,7 @@
 <form id="flagtype_properties" method="post" action="editflagtypes.cgi">
   <input type="hidden" name="action" value="[% action FILTER html %]">
   <input type="hidden" name="can_fully_edit" value="[% can_fully_edit FILTER html %]">
-  <input type="hidden" name="id" value="[% type.id %]">
+  <input type="hidden" name="id" value="[% type.id FILTER html %]">
   <input type="hidden" name="token" value="[% token FILTER html %]">
   <input type="hidden" name="target_type" value="[% type.target_type FILTER html %]">
   <input type="hidden" name="check_clusions" value="[% check_clusions FILTER none %]">
         this type will be sorted when displayed to users in a list; ignore if you
         don't care what order the types appear in or if you want them to appear
         in alphabetical order.<br>
-        <input type="text" name="sortkey" value="[% type.sortkey || 0 %]" size="5" maxlength="5"
-               [%- ' disabled="disabled"' UNLESS can_fully_edit %]>
+        <input type="text" name="sortkey" value="[% type.sortkey || 0 FILTER html %]" size="5"
+               maxlength="5" [% ' disabled="disabled"' UNLESS can_fully_edit %]>
       </td>
     </tr>
 
index 36b9032ddaee71b2b381052404a5e076aaed7f3d..239b6828cdf8e1ce23bb48a85216a5b5e116ade2 100644 (file)
 ],
 
 'admin/flag-type/edit.html.tmpl' => [
-  'type.id', 
-  'type.sortkey || 0',
   'selname',
 ],