Skip to content

Commit f12c6ee

Browse files
committed
CP-21: Additional Security
1 parent e65beba commit f12c6ee

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

plogical/acl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,8 +789,9 @@ def checkOwnerProtection(currentACL, owner, child):
789789
@staticmethod
790790
def CheckDomainBlackList(domain):
791791
import socket
792+
792793
BlackList = [ socket.gethostname(), 'hotmail.com', 'gmail.com', 'yandex.com', 'yahoo.com', 'localhost', 'aol.com', 'apple.com',
793-
'cloudlinux.com', 'email.com', 'facebook.com', 'gmail.com', 'gmx.de', 'gmx.com', 'google.com',
794+
'cloudlinux.com', 'email.com', 'facebook.com', 'gmx.de', 'gmx.com', 'google.com',
794795
'hushmail.com', 'icloud.com', 'inbox.com', 'imunify360.com', 'juno.com', 'live.com', 'localhost.localdomain',
795796
'localhost4.localdomain4', 'localhost6.localdomain6','mail.com', 'mail.ru', 'me.com',
796797
'microsoft.com', 'mxlogic.net', 'outlook.com', 'protonmail.com', 'twitter.com', 'yandex.ru']

websiteFunctions/website.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ def submitWebsiteCreation(self, userID=None, data=None):
173173
json_data = json.dumps(data_ret)
174174
return HttpResponse(json_data)
175175

176-
if not validators.email(adminEmail):
176+
177+
if not validators.email(adminEmail) or adminEmail.find('--') > -1:
177178
data_ret = {'status': 0, 'createWebSiteStatus': 0, 'error_message': "Invalid email."}
178179
json_data = json.dumps(data_ret)
179180
return HttpResponse(json_data)

0 commit comments

Comments
 (0)