mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-09 17:02:00 +00:00
Fixes Fail2Topic IP Banning (#14573)
This commit is contained in:
@@ -83,7 +83,8 @@ var/datum/controller/subsystem/fail2topic/SSfail2topic
|
||||
if (!enabled)
|
||||
return
|
||||
var/static/regex/R = regex(@"^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$") // Anything that interacts with a shell should be parsed. Prevents subnet banning and possible injection vulnerabilities
|
||||
ip = findtext(ip, R)
|
||||
R.Find(ip)
|
||||
ip = R.match
|
||||
if(length(ip) > 15 || length(ip) < 8)
|
||||
WARNING("BanFromFirewall was called with an invalid or unsafe IP")
|
||||
return FALSE
|
||||
|
||||
Reference in New Issue
Block a user