mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
Reported by: Dan Niles Obtained from: Dan Niles https://github.com/danogh/mailman2.3/blob/main/Patches/htdig/mailman-htdig-xss.patch
16 lines
797 B
Diff
16 lines
797 B
Diff
Obtained from: Dan Niles
|
|
https://github.com/danogh/mailman2.3/blob/main/Patches/htdig/mailman-htdig-xss.patch
|
|
|
|
--- ./Mailman/Cgi/mmsearch.py.orig 2024-04-15 11:11:03.159081000 -0500
|
|
+++ ./Mailman/Cgi/mmsearch.py 2024-04-15 11:57:40.585341000 -0500
|
|
@@ -146,6 +146,10 @@
|
|
raise _search_exception(listname, 'cgi', '-6- ' + detail)
|
|
if type(fs[fieldname]) is types.ListType:
|
|
raise _search_exception(listname, 'cgi', '-8- ' + detail)
|
|
+ if (re.search('[<>]', fs[fieldname].value) or
|
|
+ Utils.suspiciousHTML(fs[fieldname].value)):
|
|
+ raise _search_exception(listname, 'cgi',
|
|
+ '-15- suspicious parameter')
|
|
fieldhash[fieldname] = fs[fieldname].value
|
|
return urllib.urlencode(fieldhash)
|
|
|