Skip to content

Commit

Permalink
Bug 924802: (CVE-2013-1742) [SECURITY] (XSS) "id" and "sortkey" are n…
Browse files Browse the repository at this point in the history
…ot sanitized when editing flag types if categoryAction-foo is set

r=dkl a=glob
  • Loading branch information
LpSolit committed Oct 16, 2013
1 parent 362e689 commit 94e43ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions template/en/default/admin/flag-type/edit.html.tmpl
Expand Up @@ -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 %]">
Expand Down Expand Up @@ -133,8 +133,8 @@
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>

Expand Down
2 changes: 0 additions & 2 deletions template/en/default/filterexceptions.pl
Expand Up @@ -386,8 +386,6 @@
],

'admin/flag-type/edit.html.tmpl' => [
'type.id',
'type.sortkey || 0',
'selname',
],

Expand Down

0 comments on commit 94e43ad

Please sign in to comment.