Skip to content

Commit 38193cc

Browse files
committed
issue2550711 Fix XSS vulnerability when username contains HTML code.
Thanks to Thomas Arendsen Hein for reporting and patch.
1 parent 7064ec9 commit 38193cc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ Fixed:
5555
backported version of my proposed changes to
5656
email.header.decode_header in http://bugs.python.org/issue1079
5757
(Ralf)
58+
- issue2550711 Fix XSS vulnerability when username contains HTML code,
59+
thanks to Thomas Arendsen Hein for reporting and patch.
5860

5961

6062
2011-07-15: 1.4.19

roundup/cgi/templating.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ def history(self, direction='descending', dre=re.compile('^\d+$'),
11411141
if dre.match(user):
11421142
user = self._db.user.get(user, 'username')
11431143
l.append('<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>'%(
1144-
date_s, user, self._(action), arg_s))
1144+
date_s, cgi.escape(user), self._(action), arg_s))
11451145
if comments:
11461146
l.append(self._(
11471147
'<tr><td colspan=4><strong>Note:</strong></td></tr>'))

0 commit comments

Comments
 (0)