Skip to content

[BUG][Medium]- Artifact model URL can direct host LM traffic #95

Open

Description

@arthurianresolve

Summary

A .dsrs artifact can supply a model base_url. When the embedding host has not prebound that model name, load constructs a client from the artifact config and a model backed run sends its prompt and input to the chosen endpoint. Loading a lower trust artifact can therefore disclose prompt content to an endpoint it selects or send requests to a private service reachable by the host. A host prebinding for that model overrides the URL.

Affected code

Suggested resolution

  • Require a host controlled allowlist or explicit approval for artifact supplied model endpoints before constructing the client.
  • Keep endpoint selection in host policy when loading lower trust artifacts.

Acceptance criteria

  • An unapproved artifact URL cannot receive model requests.
  • Host approved custom model endpoints continue to work.

Related issues

#38 asks for slash bearing model names with a custom base_url; #69 covers LM selection and configuration. This ticket concerns whether an artifact supplied destination is authorized, regardless of model naming or config precedence.

Validation performed

Static source review of upstream main at 72b247e2bddc7337f923461fb27b4127c7d104f3. No runtime exploit or deployed service test was performed.

Tracking

  • Finding ID: csf_3f48812a9160f95f87f20608
  • Fingerprint: codex-security/v1:sha256:5a92e4153682a035d0de65231e623015d5128ade03c14ba6a9708264cc42607d

AI disclosure

OpenAI Codex assisted with the static source review and organization of this issue. No code change is included.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions