Detect Budibase OIDC Account Takeover via Unverified Email Linking (CVE-2026-137499) in IBM QRadar
Detects exploitation of CVE-2026-137499, an authentication bypass in Budibase from 3.41.0 before 4.0.0 (CWE-287). Budibase automatically links an OIDC identity to an existing local account when the email claim matches, without verifying the OIDC provider actually validated that email. An unauthenticated attacker can register an OIDC identity bearing the email address of a password-less global Builder/admin account and, upon first OIDC sign-in, be linked to and take over that privileged account. Detection focuses on OIDC/SSO login events that link to pre-existing privileged accounts, first-time OIDC authentications against Builder/admin identities, and anomalous account-takeover indicators (new provider, new identity source, email-match linking) in Budibase application and reverse-proxy logs.
Based on VulnCheck Advisory: Budibase 3.41.0 before 4.0.0 account takeover via unverified email OIDC linking
MITRE ATT&CK
QRadar Detection Query
-- df00tech DF00-d87f591419 · https://df00tech.com/detections/CVE-2026-137499 · licence: https://df00tech.com/detections/licence
SELECT QIDNAME(qid) AS event, "userEmail", "role", "provider", sourceip, "eventType"
FROM events
WHERE LOGSOURCETYPENAME(devicetype) ILIKE '%budibase%'
AND ("authMethod" ILIKE 'oidc' OR "eventType" ILIKE '%oidc%')
AND ("linkedToExisting" = 'true' OR "eventType" ILIKE '%account-link%' OR "eventType" ILIKE '%email-match%')
AND LOWER("role") IN ('builder','global_builder','admin','global_admin')
ORDER BY "startTime" DESC
LAST 24 HOURS AQL query identifying OIDC-linked takeovers of privileged Budibase accounts (CVE-2026-137499).
Data Sources
Required Tables
False Positives & Tuning
- Legitimate SSO onboarding linking.
- Staging environment OIDC tests.
- IdP migrations.
Other platforms for CVE-2026-137499
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 Simulate OIDC link to existing privileged account via unverified email
Expected signal: Budibase application log records an OIDC authentication and account-link event for role=admin with linkedToExisting=true.
- Test 2 Replay OIDC callback with spoofed email claim
Expected signal: Access log shows unauthenticated callback request; app log shows email-match linking for role=builder.
- Test 3 Baseline legitimate OIDC login (negative test)
Expected signal: App log records OIDC login for role=user with email_verified=true.
Response Playbook
Triage
- Confirm the Budibase version is >=3.41.0 and <4.0.0; if so, the instance is vulnerable to CVE-2026-137499.
- Identify the targeted account from the alert: verify it is a global Builder/admin and whether it was password-less (no local password credential set).
- Determine whether the OIDC provider that performed the linking actually verifies email ownership (email_verified claim); an unverified or attacker-controlled provider strongly indicates exploitation.
- Review the timeline: compare the OIDC identity's first-seen timestamp against the privileged account's creation date, a newly linked identity on an old privileged account is a red flag.
Containment
- Immediately disable the compromised Builder/admin account and revoke all its active sessions and API keys.
- Disable automatic OIDC-to-local-account linking or enforce email_verified checks, and restrict OIDC to a trusted, verifying IdP until upgraded.
- Upgrade Budibase to 4.0.0 or later, which remediates the unverified-email linking flaw.
Evidence Collection
- Export Budibase application and reverse-proxy logs covering the OIDC authentication and account-link events, preserving source IP, email claim, provider, and user IDs.
- Capture the OIDC identity records and the mapping/link table entries that associate the external identity with the local privileged account.
- Snapshot the affected account's configuration, roles, and any changes (datasource credentials, published apps, user invites) made after the suspicious login.
Escalation Criteria
- !Escalate to incident response if a privileged Builder/admin account was successfully linked to an unrecognized OIDC identity from an untrusted provider.
- !Escalate if post-takeover actions are observed: new user invites, datasource credential exfiltration, app modifications, or privilege changes performed by the linked identity.
Investigation Guide
Forensic Artifacts
- >
Budibase user/identity link records mapping OIDC subject to local account - >
OIDC authentication logs with email and provider claims - >
Reverse-proxy access logs showing the initial unauthenticated OIDC callback request - >
Session tokens and API keys issued to the newly linked identity
Tuning Guidance
Baseline your legitimate OIDC provider(s) and admin onboarding windows, then suppress links from trusted, email-verifying IdPs performed during known onboarding. Alert with high priority on any OIDC link to a Builder/admin role from an unrecognized provider, or any link where the email_verified claim is false or absent. Correlate with the account's prior auth history: a privileged account that previously only used local login suddenly linking an OIDC identity is high-fidelity.
Hunting Queries
Enumerate all OIDC account-link events grouped by email, provider, and role to surface unexpected privileged-account linkings.
// df00tech DF00-d87f591419 · https://df00tech.com/detections/CVE-2026-137499 · licence: https://df00tech.com/detections/licence
Syslog | where SyslogMessage has "oidc" | extend P=parse_json(SyslogMessage) | where tostring(P.linkedToExisting)=~"true" | summarize count() by tostring(P.email), tostring(P.provider), tostring(P.role) ``` df00tech DF00-d87f591419 · https://df00tech.com/detections/CVE-2026-137499 · licence: https://df00tech.com/detections/licence ```
index=budibase (oidc OR account-link) | spath | search linkedToExisting=true | stats count by email provider role Atomic Red Team Tests
In a lab Budibase instance (3.41.0-3.x), register an OIDC identity with an email matching an existing password-less admin and complete sign-in to trigger auto-linking.
Command
curl -sk -X GET 'https://budibase.lab.local/api/global/auth/oidc/callback?code=TESTCODE&state=TESTSTATE' -H 'X-Test-OIDC-Email: [email protected]' -H 'X-Test-OIDC-EmailVerified: false' Cleanup
curl -sk -X DELETE 'https://budibase.lab.local/api/global/users/link/oidc/[email protected]' -H 'Authorization: Bearer $LAB_ADMIN_TOKEN' Expected Telemetry
Budibase application log records an OIDC authentication and account-link event for role=admin with linkedToExisting=true.
Expected Detection
KQL/SPL detections fire on the OIDC link to a privileged account.
Replay an OIDC callback containing an email claim for a global Builder account to attempt takeover in a lab.
Command
python3 -c "import requests; requests.get('https://budibase.lab.local/api/global/auth/oidc/callback', params={'code':'LAB','state':'LAB'}, headers={'X-Test-OIDC-Email':'[email protected]'}, verify=False)" Cleanup
echo 'Remove linked OIDC identity for [email protected] via admin console' Expected Telemetry
Access log shows unauthenticated callback request; app log shows email-match linking for role=builder.
Expected Detection
Detection matches on email-match / account-link event for a Builder role.
Perform a normal OIDC login for a non-privileged user with a verified email to confirm the detection does not fire.
Command
curl -sk 'https://budibase.lab.local/api/global/auth/oidc/callback?code=OK&state=OK' -H 'X-Test-OIDC-Email: [email protected]' -H 'X-Test-OIDC-EmailVerified: true' Cleanup
echo 'No cleanup required for read-only login test' Expected Telemetry
App log records OIDC login for role=user with email_verified=true.
Expected Detection
No alert: role is non-privileged and email is verified.