Skip to content

Commit 097c37a

Browse files
author
Richard Jones
committed
- Ignore confirm set() fields by themselves in the absence of non-"confirm"
values; otherwise a bare confirm field can be used to change the a password. Reported by Cam Blackwood.
1 parent bdedaef commit 097c37a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ Fixed:
4343
we now have a regression test. We now take care that bounce-messages
4444
for incoming encrypted mails or mails where the policy dictates that
4545
outgoing traffic should be encrypted is actually pgp-encrypted. (Ralf)
46+
- Ignore confirm set() fields by themselves in the absence of non-"confirm"
47+
values; otherwise a bare confirm field can be used to change the a
48+
password. Reported by Cam Blackwood.
49+
4650

4751
2011-07-15 1.4.19
4852

roundup/cgi/form_parser.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ def parse(self, create=0, num_re=re.compile('^\d+$')):
369369
if not value:
370370
# ignore empty password values
371371
continue
372+
if d['confirm']:
373+
# ignore the "confirm" password value by itself
374+
continue
372375
for key, d in matches:
373376
if d['confirm'] and d['propname'] == propname:
374377
confirm = form[key]

0 commit comments

Comments
 (0)