Skip to content

[#2] Network policy default-allow exposes all public egress (incl. cloud metadata IP) #1748

Description

@utksh1

network_policy.py:444-452: when SECUSCAN_NETWORK_ALLOWLIST is empty, the engine adds allow rules for 0.0.0.0/0 and ::/0. The default denylist does not contain 169.254.169.254 (cloud metadata) unless the operator adds it, so SSRF to http://169.254.169.254/ is permitted by the policy layer. IPv6 is unconstrained by a typical IPv4-only denylist.

Fix: ship a default denylist with link-local/metadata ranges and require an explicit allowlist for non-internal targets.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:backendBackend API, database, or service workpriority:highHigh-priority issuetype:securitySecurity work category bonus label

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions