Skip to content

Potential Scope Bypass: Web UI client permissions being stripped by Gateway #4

@A561988

Description

@A561988

While auditing the WebSocket communication between the web UI and the gateway, I noticed that the gateway is stripping all scopes when the client connects as bitterbot-desktop.

This results in an infinite loading spinner on chat because the client doesn't have the necessary operator.read permissions to initiate a session. It seems the localhost bypass is currently hardcoded only for bitterbot-control-ui.

Proposed Fix: The logic at message-handler.ts:430-434 should probably be updated to grant standard scopes to the desktop ID when originating from a local loopback.

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