aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Gui
diff options
context:
space:
mode:
authorbwarsaw <>2006-08-30 14:54:22 +0000
committerbwarsaw <>2006-08-30 14:54:22 +0000
commit0cee915eeb5f8f99ed036d257b1103c28373eb5b (patch)
tree1489a315aaa485d4c1aa91762b63a232fb23149d /Mailman/Gui
parent14bb48657eae40f5ef80adeebd021d6a186e2cd2 (diff)
downloadmailman2-0cee915eeb5f8f99ed036d257b1103c28373eb5b.tar.gz
mailman2-0cee915eeb5f8f99ed036d257b1103c28373eb5b.tar.xz
mailman2-0cee915eeb5f8f99ed036d257b1103c28373eb5b.zip
CVE-2006-3636. Fixes for various cross-site scripting issues. Discovery by
Moritz Naumann and most of the repair work done by Mark Sapiro (with some additional work by Barry).
Diffstat (limited to 'Mailman/Gui')
-rw-r--r--Mailman/Gui/General.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/Mailman/Gui/General.py b/Mailman/Gui/General.py
index 487e7e0d..6b03fd2c 100644
--- a/Mailman/Gui/General.py
+++ b/Mailman/Gui/General.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2005 by the Free Software Foundation, Inc.
+# Copyright (C) 2001-2006 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -12,7 +12,8 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+# USA.
"""MailList mixin class managing the general options."""
@@ -439,13 +440,13 @@ class General(GUIBase):
GUIBase._setValue(self, mlist, property, val, doc)
def _escape(self, property, value):
- # The 'info' property allows HTML, but lets sanitize it to avoid XSS
+ # The 'info' property allows HTML, but let's sanitize it to avoid XSS
# exploits. Everything else should be fully escaped.
if property <> 'info':
return GUIBase._escape(self, property, value)
# Sanitize <script> and </script> tags but nothing else. Not the best
# solution, but expedient.
- return re.sub(r'<([/]?script.*?)>', r'&lt;\1&gt;', value)
+ return re.sub(r'(?i)<([/]?script.*?)>', r'&lt;\1&gt;', value)
def _postValidate(self, mlist, doc):
if not mlist.reply_to_address.strip() and \