mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Fix showed path in 'bind_public_ip' message
This commit is contained in:
parent
f940b415c1
commit
2e4e5cf37e
1 changed files with 5 additions and 4 deletions
|
@ -1584,10 +1584,11 @@ class Configurations(TestSuite):
|
|||
for ip in re.split("[ \t,='\"(){}\[\]]", line):
|
||||
if ip == "::" or ip.startswith("0.0.0.0"):
|
||||
yield Info(
|
||||
f"{os.path.join(path, filename)}:{number}: Binding to '0.0.0.0' or '::' can result "
|
||||
"in a security issue as the reverse proxy and the SSO can be "
|
||||
"bypassed by knowing a public IP (typically an IPv6) and the "
|
||||
"app port. lease be sure that this behavior is intentional. "
|
||||
f"{os.path.relpath(path, app.path)}:{number}: "
|
||||
"Binding to '0.0.0.0' or '::' can result in a security issue "
|
||||
"as the reverse proxy and the SSO can be bypassed by knowing "
|
||||
"a public IP (typically an IPv6) and the app port. "
|
||||
"Please be sure that this behavior is intentional. "
|
||||
"Maybe use '127.0.0.1' or '::1' instead."
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue