summaryrefslogtreecommitdiffstats
path: root/extensions/Voting/template/en/default/pages
diff options
context:
space:
mode:
authorDavid Lawrence <dlawrence@mozilla.com>2011-01-24 20:35:31 +0100
committerDavid Lawrence <dlawrence@mozilla.com>2011-01-24 20:35:31 +0100
commitad1e3aef99b806d7f4a5bd18aa0c8cc6102f62e6 (patch)
treee06da7523a0a54ca0e8f6c7d63185a1d76fa6607 /extensions/Voting/template/en/default/pages
parent9244270a7d1ca49e315a98c24d51bf405bfa2880 (diff)
downloadbugzilla-ad1e3aef99b806d7f4a5bd18aa0c8cc6102f62e6.tar.gz
bugzilla-ad1e3aef99b806d7f4a5bd18aa0c8cc6102f62e6.tar.xz
Bug 621105 - [SECURITY] Voting lacks CSRF protection
r=mkanat,a=LpSolit
Diffstat (limited to 'extensions/Voting/template/en/default/pages')
-rw-r--r--extensions/Voting/template/en/default/pages/voting/user.html.tmpl1
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/Voting/template/en/default/pages/voting/user.html.tmpl b/extensions/Voting/template/en/default/pages/voting/user.html.tmpl
index f2ac160f8..dbceaf217 100644
--- a/extensions/Voting/template/en/default/pages/voting/user.html.tmpl
+++ b/extensions/Voting/template/en/default/pages/voting/user.html.tmpl
@@ -74,6 +74,7 @@
[% IF products.size %]
<form name="voting_form" method="post" action="page.cgi?id=voting/user.html">
<input type="hidden" name="action" value="vote">
+ <input type="hidden" name="token" value="[% issue_hash_token(['vote']) FILTER html %]">
<table cellspacing="4">
<tr>
<td></td>