1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/security/denyhosts/files/patch-DenyHosts_regex.py
Rong-En Fan d7933bb282 - Fix a DoS issue
PR:		ports/113942
Security:	http://www.ossec.net/en/attacking-loganalysis.html#denyhosts
Submitted by:	David Bestor <freebsd1 at indenial.com>
Approved by:	Janos Mohacsi <mohacsi at niif.hu> (maintainer)
2007-06-23 06:35:16 +00:00

12 lines
668 B
Python

--- DenyHosts/regex.py.orig Sat Jun 23 14:32:34 2007
+++ DenyHosts/regex.py Sat Jun 23 14:32:58 2007
@@ -17,7 +17,7 @@
FAILED_ENTRY_REGEX4 = re.compile(r"""Authentication failure for (?P<user>.*) .*from (?P<host>.*)""")
-FAILED_ENTRY_REGEX5 = re.compile(r"""User (?P<user>.*) .*from (?P<host>.*) not allowed because none of user's groups are listed in AllowGroups""")
+FAILED_ENTRY_REGEX5 = re.compile(r"""User (?P<user>.*) .*from (?P<host>.*) not allowed because none of user's groups are listed in AllowGroups$""")
FAILED_ENTRY_REGEX6 = re.compile(r"""Did not receive identification string .*from (::ffff:)?(?P<host>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})""")