forked from 3wordchant/capsul-flask
remove query string XSS from login token
This commit is contained in:
@ -45,6 +45,8 @@ def double_check_capsul_address(id, ipv4):
|
||||
def index():
|
||||
vms = get_vms()
|
||||
created = request.args.get('created')
|
||||
|
||||
# this is here to prevent xss
|
||||
if not re.match(r"^(cvm|capsul)-[a-z0-9]{10}$", created):
|
||||
created = '___________'
|
||||
|
||||
|
Reference in New Issue
Block a user