mirror of https://gitlab.com/bashrc2/epicyon
Forbid any exec commands
parent
a067353aff
commit
4c1cf463b8
2
utils.py
2
utils.py
|
@ -1101,7 +1101,7 @@ def dangerous_markup(content: str, allow_local_network_access: bool) -> bool:
|
||||||
"""
|
"""
|
||||||
separators = [['<', '>'], ['<', '>']]
|
separators = [['<', '>'], ['<', '>']]
|
||||||
invalid_strings = [
|
invalid_strings = [
|
||||||
'analytics', 'ampproject', 'googleapis'
|
'analytics', 'ampproject', 'googleapis', '_exec('
|
||||||
]
|
]
|
||||||
if _is_dangerous_string_simple(content, allow_local_network_access,
|
if _is_dangerous_string_simple(content, allow_local_network_access,
|
||||||
separators, invalid_strings):
|
separators, invalid_strings):
|
||||||
|
|
Loading…
Reference in New Issue