Detect OpenAM OAuthTokenStore Token Forging via User-Controlled CTS Key (CVE-2026-46498) in CrowdStrike LogScale
Detects potential exploitation of CVE-2026-46498, an Authorization Bypass Through User-Controlled Key (CWE-639) in Open Identity Platform OpenAM Community Edition prior to 16.1.1. The OAuthTokenStore reads caller-supplied token identifiers from the shared Core Token Service (CTS) without placing them in an OAuth-only namespace, and OAuthAdapter accepts any CTS row whose stored blob claims to be an OAuth token without binding the trusted CTS type or verifying integrity. An attacker who can place attacker-controlled JSON into CTS under a known identifier, for example through a Push registration followed by an anonymous SNS callback in a Push-enabled realm, can mint OAuth2 bearer tokens and OpenID Connect ID tokens with arbitrary subject, client, realm, and scope. The flaw does not by itself create an OpenAM SSO session or grant console access. Detection is heuristic and focuses on anomalous access to OpenAM OAuth2 token endpoints: a single session or principal referencing many distinct token identifiers, token identifier patterns, and token lookups that resolve to a different owner than the authenticated caller.
MITRE ATT&CK
- Tactic
- Credential Access Initial Access
LogScale Detection Query
// df00tech DF00-31dfe2c441 · https://df00tech.com/detections/CVE-2026-46498 · licence: https://df00tech.com/detections/licence
#repo="openam_access"
| url_path = "/oauth2/*"
| in(url_path, values=["/oauth2/access_token", "/oauth2/introspect", "/oauth2/tokeninfo", "/oauth2/userinfo"])
| regex("(?:token|token_id|access_token|refresh_token)=(?<token_id>[A-Za-z0-9\-_]{8,})", field=_raw)
| token_id = /.+/
| groupBy([principal, src_ip], function=[count(as=req_count), count(token_id, distinct=true, as=distinct_tokens), collect([url_path])])
| distinct_tokens >= 15
| sort(distinct_tokens, order=desc) CrowdStrike LogScale/CQL query grouping OpenAM OAuth token-endpoint events by principal and source IP, flagging those referencing an abnormal number of distinct token identifiers.
Data Sources
Required Tables
False Positives & Tuning
- Bulk token introspection by legitimate resource servers
- Shared SSO service identity proxying many users
- Load/synthetic testing against token endpoints
Other platforms for CVE-2026-46498
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 OAuth token identifier enumeration against OpenAM token endpoint
Expected signal: 25 POST requests to /oauth2/introspect from one principal/source IP each carrying a distinct token identifier within a short window.
- Test 2 Cross-account token lookup via another principal's token identifier
Expected signal: A tokeninfo request from attacker principal referencing a token identifier owned by a different principal; CTS record maps the token to the victim.
- Test 3 Sequential token-endpoint access from single source IP
Expected signal: 20 sequential POST requests to /oauth2/introspect from one source IP, each carrying a token identifier, within 10 minutes.
Response Playbook
Triage
- Confirm the OpenAM version on the affected server(s). If running < 16.1.1 the instance is vulnerable; verify against the fixed release 16.1.1 and the GHSA-cj8f-2fhf-826r advisory.
- Identify the flagged principal/session and source IP, and extract the distinct token identifiers referenced. Determine whether those token identifiers belong to the authenticated caller or to other principals via the CTS/OAuthTokenStore records.
- Review the OAuth2 endpoints hit (access_token, introspect, tokeninfo, userinfo) and whether responses returned 200 with token/claims data for tokens not owned by the caller or for forged tokens, a strong indicator of successful exploitation.
- Correlate the source IP/principal with authentication logs to determine whether the caller is a legitimate resource server/confidential client or an unexpected identity. Check whether a Push registration and anonymous SNS callback preceded the activity in a Push-enabled realm.
Containment
- Revoke/invalidate the OAuth2 sessions and tokens referenced by the suspicious caller, and force re-authentication for any principals whose identities appear in forged or accessed tokens.
- Upgrade OpenAM to 16.1.1 (or apply the fix from commit e047b01f24ce5006dbd62b3084b17df2d7835763), which binds OAuth tokens to an OAuth-only CTS namespace and type.
- If upgrade is not immediately possible, restrict access to the OAuth2 token endpoints to trusted clients at the reverse proxy/WAF and rate-limit token lookups per client.
Evidence Collection
- Preserve OpenAM access and audit logs, CTS token store records, and reverse-proxy/WAF logs covering the activity window, including full request URIs and token identifiers.
- Capture the list of accessed or forged token identifiers with their claimed subject, client, realm, and scope, response codes, and returned data to document scope.
Escalation Criteria
- !Escalate to incident response if token lookups returned successful (200) responses containing claims/userinfo for tokens not legitimately issued to the caller, confirming token forging or cross-account access.
- !Escalate if forged tokens carried privileged or administrative subject/scope, or if accessed tokens were subsequently used to perform authenticated actions.
Investigation Guide
Forensic Artifacts
- >
OpenAM access/audit logs showing token identifiers in request URIs/bodies - >
Core Token Service (CTS) store records, including rows whose blob claims OAuth type - >
Reverse proxy / WAF request logs with response codes for token-endpoint requests - >
OpenAM session, Push registration, and OAuth2 grant records for the flagged principal
Tuning Guidance
Baseline legitimate high-volume OAuth clients (resource servers that introspect tokens, API gateways, SSO integrations) and allowlist their client/principal IDs or source IPs before applying the distinct-token thresholds. Adjust the distinct-token threshold (default 15 per 10m) to your environment's normal introspection volume. The highest-fidelity signal is the hunting query that finds a single token identifier referenced by multiple distinct principals; prioritize that over volume-based thresholds where token-to-owner mapping is available.
Hunting Queries
Surfaces token identifiers referenced by more than one distinct principal, a signal that a caller used a token identifier not legitimately its own.
// df00tech DF00-31dfe2c441 · https://df00tech.com/detections/CVE-2026-46498 · licence: https://df00tech.com/detections/licence
OpenAM_AccessLog_CL | where RequestUri_s has "/oauth2/" | extend TokenId = extract(@"(?:token|token_id|access_token|refresh_token)=([A-Za-z0-9\-_]{8,})", 1, RequestUri_s) | where isnotempty(TokenId) | summarize Principals = dcount(Principal_s), Callers = make_set(Principal_s, 10) by TokenId | where Principals > 1 ``` df00tech DF00-31dfe2c441 · https://df00tech.com/detections/CVE-2026-46498 · licence: https://df00tech.com/detections/licence ```
index=openam uri_path="/oauth2/*" | rex field=_raw "(?:token|token_id|access_token|refresh_token)=(?<token_id>[A-Za-z0-9\-_]{8,})" | stats dc(principal) as principals values(principal) as callers by token_id | where principals > 1 Atomic Red Team Tests
Simulates a single caller referencing many distinct OAuth token identifiers at the introspection endpoint to trigger the distinct-token volume detection (lab only).
Command
for i in $(seq 1 25); do curl -s -o /dev/null -X POST "https://openam.lab.local/openam/oauth2/introspect" --data "token=tok_$(openssl rand -hex 12)" -H "Authorization: Bearer $CLIENT_TOKEN"; done Cleanup
unset CLIENT_TOKEN; echo 'No persistent artifacts to clean; rotate any lab tokens used.' Expected Telemetry
25 POST requests to /oauth2/introspect from one principal/source IP each carrying a distinct token identifier within a short window.
Expected Detection
The KQL/SPL distinct-token volume rule fires when distinct token identifiers for the caller exceed the threshold (15) in the 10m window.
Simulates caller A referencing a token identifier that belongs to caller B at the tokeninfo endpoint, exercising the token-read path (lab only).
Command
curl -s -X GET "https://openam.lab.local/openam/oauth2/tokeninfo?access_token=${VICTIM_TOKEN_ID}" -H "Authorization: Bearer ${ATTACKER_CLIENT_TOKEN}" Cleanup
unset VICTIM_TOKEN_ID ATTACKER_CLIENT_TOKEN Expected Telemetry
A tokeninfo request from attacker principal referencing a token identifier owned by a different principal; CTS record maps the token to the victim.
Expected Detection
The multi-principal-per-token hunting query flags the token identifier as referenced by more than one distinct principal.
Simulates rapid sequential OAuth token-endpoint requests carrying token identifiers from a single source to trigger the Elastic/Chronicle sequence detections (lab only).
Command
1..20 | ForEach-Object { Invoke-WebRequest -UseBasicParsing -Method Post -Uri "https://openam.lab.local/openam/oauth2/introspect" -Body @{ token = "tok_$(Get-Random)" } -Headers @{ Authorization = "Bearer $env:CLIENT_TOKEN" } | Out-Null } Cleanup
Remove-Item Env:\CLIENT_TOKEN -ErrorAction SilentlyContinue Expected Telemetry
20 sequential POST requests to /oauth2/introspect from one source IP, each carrying a token identifier, within 10 minutes.
Expected Detection
The Elastic EQL sequence and Chronicle YARA-L rules match the repeated token-bearing requests from the single source IP.