Skip to content

Commit 4611c32

Browse files
committed
security fix: submitDomainCreation
1 parent 7b3029e commit 4611c32

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

websiteFunctions/website.py

+3
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ def submitDomainCreation(self, userID=None, data=None):
261261
else:
262262
return ACLManager.loadErrorJson('createWebSiteStatus', 0)
263263

264+
if data['path'].find('..') > -1:
265+
return ACLManager.loadErrorJson('createWebSiteStatus', 0)
266+
264267
if currentACL['admin'] != 1:
265268
data['openBasedir'] = 1
266269

0 commit comments

Comments
 (0)