Detect LaraDashboard Social Login Authentication Bypass (CVE-2026-130754) in Elastic Security
Detects exploitation of CVE-2026-130754, an authentication bypass in LaraDashboard's SocialAuthService::findOrCreateUser(). The method links an incoming OAuth/social login to an existing local account purely by matching the email address returned by the social provider, without verifying that the social provider has validated email ownership or that the local account consented to the link. An attacker who can obtain a social-provider token asserting a victim's email (for example via a provider that does not verify email, or an attacker-controlled app on a lax provider) can take over any existing LaraDashboard account, including administrators. All versions are affected. Detection focuses on the web and application telemetry of social-login callback flows: OAuth callback requests that resolve to an existing (especially privileged) account, logins where the social-linked email differs from the originally registered authentication method, first-time social logins immediately followed by privileged actions, and anomalous source, geo or device for the account.
Based on LaraDashboard GitHub Security Advisory GHSA-c5x3-wvxj-7cgr
MITRE ATT&CK
Elastic Detection Query
// df00tech DF00-b3680888a0 · https://df00tech.com/detections/CVE-2026-130754 · licence: https://df00tech.com/detections/licence
sequence by http.session_id with maxspan=2m
[ web where url.path : ("*/auth/*/callback", "*/socialite/*/callback", "*/login/*/callback", "*/oauth/*/callback") ]
[ authentication where event.action == "social_login_linked" and user.target.roles : "admin" and laradashboard.prior_auth_method != "social" ] Elastic EQL sequence matching a social OAuth callback followed within two minutes by a social-login link resolving to an existing admin account whose prior authentication method was not social.
Data Sources
Required Tables
False Positives & Tuning
- Legitimate first-time social login by a genuine admin whose email matches.
- Admin deliberately linking a social provider from account settings.
- Replayed test traffic in staging indexed alongside production.
Other platforms for CVE-2026-130754
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 social-login account takeover via email match (lab)
Expected signal: Web access log entry for /auth/github/callback and an application auth event social_login_linked with auth_method=social and prior_auth_method=password for the victim user.
- Test 2 Privileged account targeting via social callback (lab)
Expected signal: Application auth event social_login_linked with is_admin=true, auth_method=social, prior_auth_method!=social.
- Test 3 Post-takeover privileged action burst (lab)
Expected signal: Auth link event followed within the same session by user-creation and token-issuance application events from the same src_ip.
Response Playbook
Triage
- Identify the target account from the social-login event (user_id/user_email) and determine whether it pre-existed the social login and whether it holds admin/privileged roles.
- Compare the account's original authentication method and historical login IPs/devices/geos against the social-login callback source; a new provider plus new source region is strong evidence of takeover.
- Pull the full OAuth callback request: provider name, returned email, and whether the provider is one known to verify email ownership. Unverified-email providers materially raise confidence.
- Check for privileged actions (role changes, user creation, API token issuance, data export) occurring in the same session immediately after the social login linked.
Containment
- Immediately revoke the active session(s) for the affected account and invalidate any API tokens issued during or after the suspicious social login.
- Disable social-login-based account linking for existing accounts (or force re-verification) until LaraDashboard is patched, and lock the affected account pending owner re-verification via a trusted channel.
- If an admin account was taken over, rotate application and infrastructure secrets that the account could have accessed.
Evidence Collection
- Preserve web server access logs for the OAuth callback endpoints, including source IP, user agent, provider, and timestamps.
- Export LaraDashboard application auth logs showing the social_login_linked / login_success events, user_id, email, auth_method and prior_auth_method.
- Capture the OAuth provider's token/userinfo response if available (claims, email_verified flag) and any audit records of privileged actions performed in the session.
Escalation Criteria
- !Escalate to incident response immediately if the linked account is an administrator or holds elevated privileges.
- !Escalate if privileged actions (role grants, user/token creation, data export, configuration changes) occurred in the post-link session.
- !Escalate if multiple distinct accounts were linked from a single source IP or if the source provider is known not to verify email ownership.
Investigation Guide
Forensic Artifacts
- >
Web server access logs for /auth|/socialite|/oauth/*/callback endpoints. - >
LaraDashboard application auth logs recording auth_method, prior_auth_method, user_email and is_admin. - >
OAuth provider token/userinfo responses and the application's stored social-account linkage records in the database (e.g. social_accounts / users tables).
Tuning Guidance
Tune by maintaining an allowlist of OAuth providers that cryptographically verify email ownership (email_verified=true) and suppress alerts where the provider is trusted AND the link was owner-initiated via the in-app settings flow. Baseline each account's normal login IPs/geos/devices to reduce first-time-legitimate-login noise, and prioritize alerts where is_admin=true or where privileged actions follow within the same session. If prior_auth_method is not logged, add it to LaraDashboard's auth event schema before relying on these rules, and treat empty values as 'investigate' rather than suppress.
Hunting Queries
Baseline and hunt for social-login links against pre-existing (especially privileged) accounts whose prior authentication method was not social.
// df00tech DF00-b3680888a0 · https://df00tech.com/detections/CVE-2026-130754 · licence: https://df00tech.com/detections/licence
AppServiceHTTPLogs | where CsUriStem has 'callback' and CsUriStem has_any ('auth','socialite','oauth') | summarize Callbacks=count(), Ips=dcount(CIp) by bin(TimeGenerated,1d) | where Callbacks > 0 ``` df00tech DF00-b3680888a0 · https://df00tech.com/detections/CVE-2026-130754 · licence: https://df00tech.com/detections/licence ```
index=app sourcetype="laradashboard:auth" event="social_login_linked" prior_auth_method!="social" | stats count by user_email, is_admin, src_ip | sort - count Atomic Red Team Tests
In an isolated LaraDashboard lab, register a victim account with password auth, then complete a social-login callback asserting the victim's email from a mock provider that does not verify email, and confirm the session resolves to the victim account.
Command
curl -s -c /tmp/ld_cookies.txt 'https://laradashboard.lab/login' >/dev/null; curl -s -b /tmp/ld_cookies.txt 'https://laradashboard.lab/auth/github/callback?code=MOCK_CODE_FOR_VICTIM_EMAIL&state=TESTSTATE' -o /tmp/ld_callback_resp.html; grep -i 'dashboard\|admin' /tmp/ld_callback_resp.html Cleanup
rm -f /tmp/ld_cookies.txt /tmp/ld_callback_resp.html Expected Telemetry
Web access log entry for /auth/github/callback and an application auth event social_login_linked with auth_method=social and prior_auth_method=password for the victim user.
Expected Detection
KQL/SPL callback correlation and the prior_auth_method!=social rules fire on the victim account.
Repeat the callback flow asserting an administrator's email to demonstrate admin takeover and confirm the is_admin branch of the detections triggers.
Command
curl -s -b /tmp/ld_admin.txt 'https://laradashboard.lab/socialite/google/callback?code=MOCK_ADMIN_EMAIL&state=TESTSTATE' -o /tmp/ld_admin_resp.html; grep -i 'admin\|users\|settings' /tmp/ld_admin_resp.html Cleanup
rm -f /tmp/ld_admin.txt /tmp/ld_admin_resp.html Expected Telemetry
Application auth event social_login_linked with is_admin=true, auth_method=social, prior_auth_method!=social.
Expected Detection
All seven dialect rules flag the is_admin=true privileged-takeover condition as critical.
After a simulated social-login takeover, perform a privileged action (create a user / issue an API token) in the same session to validate the playbook's same-session escalation criteria and hunting queries.
Command
curl -s -b /tmp/ld_admin.txt -X POST 'https://laradashboard.lab/admin/users' -d 'name=atk&[email protected]&role=admin' -o /tmp/ld_create.json; curl -s -b /tmp/ld_admin.txt -X POST 'https://laradashboard.lab/admin/tokens' -d 'name=persist' -o /tmp/ld_token.json Cleanup
rm -f /tmp/ld_create.json /tmp/ld_token.json /tmp/ld_admin.txt Expected Telemetry
Auth link event followed within the same session by user-creation and token-issuance application events from the same src_ip.
Expected Detection
Elastic EQL sequence and the playbook same-session escalation logic correlate the link event with the subsequent privileged actions.