Skip to content

fix(security): ssrf guards admit azure's wireserver metadata address 168.63.129.16 #989

Closed as not planned

Description

@dan-petty

Problem

is_non_public_ip (src/devops_cli/core/validation.py:107-116) and CONST_CLOUD_METADATA_IPS (169.254.169.254 and fd00:ec2::254) admit 168.63.129.16. That is Azure's WireServer, a public address that every Azure VM can reach and that serves instance metadata and the guest agent. On an Azure host, a URL that an untrusted caller names (web_fetch, docs ingestion, a gateway or Qdrant URL from a reviewed tree) can reach it.

pydantic-ai, which devops-cli already pins, blocks it as a cloud metadata address. Found while refining #898 on 2026-10-02.

Acceptance criteria

  • 168.63.129.16 is a cloud metadata address in CONST_CLOUD_METADATA_IPS, and every SSRF guard that consults that list refuses it.
  • The other cloud metadata endpoints pydantic-ai's classifier lists are compared with ours. Each one is added, or the task file says why it is not.
  • An offline test refuses 168.63.129.16 for web_fetch and for a configured service URL.
  • uv run devops ci passes.

Related: #898, #897.

Activity

  1. added
    type/security
    scope/security
    priority/p2-medium
    on Oct 2, 2026
  2. dan-petty commented on Oct 3, 2026

    @dan-petty
    OwnerAuthor

    Merged into #897 (consolidation, 2026-10-03): the WireServer address is one row of #897's metadata classification.

    Closing as covered by #897. #897 has been rewritten to answer every IP question with ipaddress objects and one maintained metadata classifier: pydantic-ai's, which is already pinned. That classifier lists 168.63.129.16.

    This issue's cases are rows in #897's acceptance table. 168.63.129.16 is refused in each of these places:

    The comparison with pydantic-ai's list is settled by using that list directly. It adds 169.254.170.2, 169.254.170.23, 100.100.100.200, 192.0.0.192, 169.254.42.42, fd00:ec2::23, fd20:ce::254 and fd00:42::42. Fixes use maintained libraries rather than hand-kept address lists (owner decision, 2026-10-03), so no local copy of this list is kept. #897 imports the classifier at one site and pins it with a contract test, and upstream is asked to export it publicly.

    Tracked in #897 (v0.2.27).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p2-mediumscope/securitytype/security

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions