
A Loom user who can invoke an agent over the websocket skips the approval policies that an HTTP invoke would send. An anonymous websocket is still closed. v1.9.0 and v1.10.3. Medium 6.5.
Someone who can already invoke an agent over the websocket skips the approval list that an HTTP invoke would attach. The socket never loads ApprovalPolicy. Tools that were supposed to wait for a person do not get that list.
An anonymous socket is still closed. This lab did not run a tool through to a side effect. It showed the HTTP payload carrying one policy and the socket payload carrying none. The score treats the skipped gate as high integrity because that gate is what the product uses to stop the tool. The oracle itself is the missing key.
Class: Missing authorization check on the invoke socket
Reach: Remote. In-group invoke on a custom-code agent. Not anonymous.
Loom v1.9.0 a3050669 and v1.10.3 cc10ab0
| ID | no CVE yet |
| Class | Websocket invoke omits approval_policies |
| Reach | Remote, in-group invoke |
| CWE | CWE-862 |
| CVSS | Medium: 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| Product | awslabs/loom |
| Affected | v1.9.0 a3050669f5b4c83210a44ed4346f17e01641e82f and v1.10.3 cc10ab08573087fa12154f7c8181ffcd985fea88 |
| Auth | first-frame bearer with invoke and the agent's group |
| License | GNU Affero GPL v3.0 |
| Lab | loopback Docker on v1.9.0. v1.10.3 was a source check. |
| Privilege | Method / sink | Impact | Lab-proven or inferred |
|---|---|---|---|
| Open the socket with no token | WS /api/agents/{id}/ws | Closed | Lab-proven. Unauthorized, close 1008, session-start=0 |
| Send the approval list on HTTP | POST /api/agents/{id}/invoke | The payload includes approval_policies | Lab-proven. Count 1. |
| Invoke on the socket without that list | WS /api/agents/{id}/ws after a valid first frame | Integrity. Payload keys were type, prompt, session_id, actor_id. | Lab-proven. ws-approval-policies=0 |
| Run a specific tool to completion with no approval row | the agent process | Integrity | Inferred from the omit. The lab stopped at the payload. |
Stays closed
| Axis | Method / sink | Why it is closed |
|---|---|---|
| Integrity | Anonymous invoke | First frame is authenticated. No session starts. |
| Integrity | IAM-signed runtimes | The socket does not sign |
| Integrity | HTTP invoke of the same agent | Still loads enabled policies |
HTTP invoke queries enabled approval rows and passes them through. invoke_agent_websocket does not query that table, and invoke_agent_ws has no approval_policies field. I assumed the socket had been brought up to the HTTP contract when the unauthenticated connect was closed. The auth check landed. The policy query did not.
Container on v1.9.0. The split is still there on v1.10.3.
python3 loom-ws-hitl-Abraxas-Labs.py
SUCCESS LOOM-190-WS-HITL unauth=Unauthorized session-start=0 http-approval-policies=1 ws-approval-policies=0 LOOM-190-WS-HITL-WITNESS
Load the same enabled ApprovalPolicy rows in invoke_agent_websocket and pass them into invoke_agent_ws.
cc10ab08573087fa12154f7c8181ffcd985fea88invocations.py invoke_agent_websocketagentcore.py invoke_agent_wsGNU Affero GPL v3.0. See LICENSE. Loopback lab only. No warranty.
Abraxas Labs [email protected]