Skip to content

harden(oauth): SSRF-validate token_url in llm_shared refresh/device + admin-gate /status (#11061) #11298

Closed

Description

@mrveiss

Discrete deliverable of #11061 (umbrella #11058). Covers the two contained findings; the headline state/PKCE binding is #11297 and the remaining MEDs (device-poll rate-limit, DNS-rebinding pin, per-tenant vault, token audience) stay on #11061.

  • HIGH — refresh/device SSRF bypass: llm_shared/provider_auth.OAuthAuth._refresh now calls require_allowlisted_https(self._token_url, get_oauth_allowed_hosts()) before the outbound POST (covers DeviceCodeAuth too — it refreshes via _refresh). The OAuth host allowlist moved to autobot_shared.url_safety as the single source.
  • MED — /status not admin-gated: added check_admin_permission.

Fixed by the linked PR.

Activity

  1. mrveiss commented on Jul 8, 2026

    @mrveiss
    OwnerAuthor

    Closed — merged to Dev_new_gui via #11299. llm_shared._refresh SSRF-validates token_url before every outbound POST (OAuth + device refresh); OAuth allowlist consolidated in autobot_shared.url_safety; /status admin-gated. Verified: evil host rejected, good host allowed, blocked URL never reaches the network.

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

    bugSomething isn't workingfrontend

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions