mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
better ip discrimination
This commit is contained in:
parent
8b38cf0924
commit
23b2f7d6bb
1 changed files with 9 additions and 7 deletions
|
@ -1549,13 +1549,15 @@ class Configurations(TestSuite):
|
||||||
( "0.0.0.0" in line or "::" in line )
|
( "0.0.0.0" in line or "::" in line )
|
||||||
and not line.strip().startswith(comment)
|
and not line.strip().startswith(comment)
|
||||||
):
|
):
|
||||||
yield Info(
|
for ip in re.split("[ \t,='\"(){}\[\]]", line):
|
||||||
f"{filename}:{number}: Binding to '0.0.0.0' or '::' can result "
|
if ip == "::" or "0.0.0.0" in ip:
|
||||||
"in a security issue as the reverse proxy and the SSO can be "
|
yield Info(
|
||||||
"bypassed by knowing a public IP (typically an IPv6) and the "
|
f"{filename}:{number}: Binding to '0.0.0.0' or '::' can result "
|
||||||
"app port. lease be sure that this behavior is intentional. "
|
"in a security issue as the reverse proxy and the SSO can be "
|
||||||
"Maybe use '127.0.0.1' or '::1' instead."
|
"bypassed by knowing a public IP (typically an IPv6) and the "
|
||||||
)
|
"app port. lease be sure that this behavior is intentional. "
|
||||||
|
"Maybe use '127.0.0.1' or '::1' instead."
|
||||||
|
)
|
||||||
|
|
||||||
#############################################
|
#############################################
|
||||||
# __ __ _ __ _ #
|
# __ __ _ __ _ #
|
||||||
|
|
Loading…
Reference in a new issue