Skip to content
CVE-2026-137499 Microsoft Sentinel · KQL

Detect Budibase OIDC Account Takeover via Unverified Email Linking (CVE-2026-137499) in Microsoft Sentinel

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

Tactic
Initial Access Privilege Escalation

KQL Detection Query

Microsoft Sentinel (KQL)
kusto
// df00tech DF00-d87f591419 · https://df00tech.com/detections/CVE-2026-137499 · licence: https://df00tech.com/detections/licence
// Budibase OIDC account-takeover via unverified-email linking (CVE-2026-137499)
// Parse Budibase/reverse-proxy application logs ingested as Syslog or custom table
let privilegedRoles = dynamic(["builder","global_builder","admin","global_admin"]);
Syslog
| where SyslogMessage has_any ("oidc", "sso", "authenticate", "account-link")
| extend Parsed = parse_json(SyslogMessage)
| extend EventType = tostring(Parsed.event), AuthMethod = tostring(Parsed.authMethod),
         UserEmail = tolower(tostring(Parsed.email)), Role = tolower(tostring(Parsed.role)),
         Provider = tostring(Parsed.provider), LinkedExisting = tostring(Parsed.linkedToExisting),
         SrcIp = tostring(Parsed.sourceIp)
| where AuthMethod =~ "oidc" or EventType has "oidc"
| where LinkedExisting =~ "true" or EventType has "account-link" or EventType has "email-match"
| where Role in (privilegedRoles)
| project TimeGenerated, EventType, UserEmail, Role, Provider, SrcIp, Computer, SyslogMessage
| sort by TimeGenerated desc
critical severity medium confidence

Flags OIDC sign-ins that link to a pre-existing privileged (Builder/admin) Budibase account via email matching, the core takeover primitive of CVE-2026-137499.

Data Sources

Budibase application logsReverse proxy / Syslog

Required Tables

Syslog

False Positives & Tuning

  • Legitimate first-time OIDC/SSO rollout where existing admins intentionally link their SSO identity to local accounts.
  • Administrators testing the OIDC integration in a staging tenant.
  • Provider migration (e.g., switching IdPs) causing legitimate re-linking of existing accounts.

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.

  1. 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.

  2. 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.

  3. 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

  1. Confirm the Budibase version is >=3.41.0 and <4.0.0; if so, the instance is vulnerable to CVE-2026-137499.
  2. 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).
  3. 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.
  4. 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

  1. Immediately disable the compromised Builder/admin account and revoke all its active sessions and API keys.
  2. Disable automatic OIDC-to-local-account linking or enforce email_verified checks, and restrict OIDC to a trusted, verifying IdP until upgraded.
  3. Upgrade Budibase to 4.0.0 or later, which remediates the unverified-email linking flaw.

Evidence Collection

  1. Export Budibase application and reverse-proxy logs covering the OIDC authentication and account-link events, preserving source IP, email claim, provider, and user IDs.
  2. Capture the OIDC identity records and the mapping/link table entries that associate the external identity with the local privileged account.
  3. 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.

Hunting — KQL
kql
// 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)
Hunting — SPL
spl
``` 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

Test 1 Simulate OIDC link to existing privileged account via unverified email
linux

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

bash
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

bash
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.

Test 2 Replay OIDC callback with spoofed email claim
linux

Replay an OIDC callback containing an email claim for a global Builder account to attempt takeover in a lab.

Command

bash
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

bash
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.

Test 3 Baseline legitimate OIDC login (negative test)
linux

Perform a normal OIDC login for a non-privileged user with a verified email to confirm the detection does not fire.

Command

bash
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

bash
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.

Related Detections