Skip to content

[BUG][Medium]- Reachable diagnostic routes reveal program source and prompt traces #98

Open

Description

@arthurianresolve

Summary

When an operator exposes the CLI listener while serving a private program, GET /program returns its canonical .dsrs source, and a caller can request /run?trace=1 to receive trace JSONL. The source can include instructions, demonstrations, and tool code; the trace can include rendered prompts. These diagnostic routes have no caller access check.

Affected code

Suggested resolution

  • Restrict diagnostic routes and trace selection to authorized callers, or disable them by default on exposed listeners.
  • Provide redaction or an explicit operator opt in for returning source and rendered prompts.

Acceptance criteria

  • A caller without diagnostic access cannot retrieve program source or prompt traces.
  • Authorized diagnostics still work when intentionally enabled.

Related issues

#56 asks for tracing, and #70 asks for richer history. This ticket concerns access to diagnostic data already returned over HTTP, not how that data is recorded.

Validation performed

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

Tracking

  • Finding ID: csf_992f22498fe771ce5010ab30
  • Fingerprint: codex-security/v1:sha256:da3f3bc75e48af1971ac4daeb55380bd4eef0866255025e9745d8a098e31f398

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