mirror of https://gitlab.com/bashrc2/epicyon
Check for localhost links in css
parent
249cc1ab5a
commit
5dfd647f81
|
@ -196,7 +196,8 @@ def dangerousCSS(filename: str, allowLocalNetworkAccess: bool) -> bool:
|
||||||
content = fp.read().lower()
|
content = fp.read().lower()
|
||||||
|
|
||||||
cssMatches = ('behavior:', ':expression', '?php', '.php',
|
cssMatches = ('behavior:', ':expression', '?php', '.php',
|
||||||
'google')
|
'google', 'localhost',
|
||||||
|
'127.0.', '192.168', '10.0.')
|
||||||
for match in cssMatches:
|
for match in cssMatches:
|
||||||
if match in content:
|
if match in content:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue