DEV Community

SorrelThorncroft
SorrelThorncroft

Posted on

Post-Fix Test Plan for Mendix OIDC Token Introspection

Post-Fix Test Plan for Mendix OIDC Token Introspection

A version check confirms that the Mendix OIDC Provider package changed. It does not prove that an invalid JWT can no longer inherit a valid session through a copied jti. CVE-2026-124981 needs a negative test that exercises the exact trust boundary across every exposed authentication path.

The fixed thresholds are V4.3.0 on the Mendix 9 line and V6.0.0 on Mendix 10 and Mendix 11. Siemens also recommends independent JWT signature validation at resource servers. The test plan should verify both the patched module and the surrounding validation controls.

Define pass and fail

A test passes when a JWT with an active token's jti but an invalid signature is rejected before the application creates a session or maps the request to an account. The rejection should occur at a component that has enough information to validate the token, not from a superficial string check.

A test fails when the request is accepted, when it reaches account-specific business logic, or when the result is indeterminate because the gateway, identity service and application disagree. An HTTP error page by itself is not enough if the application already created session state.

Prepare controlled test inputs

Use test accounts and non-production data. Create a valid JWT for the target application, then make a separate token with the same jti and a deliberately invalid signature. Keep all token material outside general logs and remove it after the test.

Also prepare an expired JWT, a token with the wrong issuer, a token with the wrong audience and a token issued for a different client. These cases verify that the fixed module and resource server enforce the surrounding claim rules, not only the signature.

Test every entry path

Send the invalid-signature token through the browser-facing API, the partner API gateway, service-to-service routes and any direct application endpoint used by operations. A path that bypasses the public gateway needs the same coverage because it may call the introspection endpoint differently.

For each request, record the gateway result, the application result, the identity-provider result and whether any session or cache entry was created. Test with representative roles so the observation includes the authorization mapping that follows validation.

Check the positive path

A valid token must still work after the fix. Verify that the correct user reaches the correct application area and API scope. Test a normal sign-in and a token-based API call separately because they can use different validation routes.

Confirm that session timeouts, revocation and role changes remain effective. A security patch that blocks the forged token but leaves stale authorization state attached to a revoked session has not completed the control review.

Inspect caches and repeated requests

Repeat the invalid-signature request after a valid request has populated the authorization cache. The invalid token must not receive the cached identity merely because the jti matches. Also test after cache eviction and after a session refresh.

If the gateway stores introspection results, verify that the cache key includes the verified token context and that a different JWT cannot reuse the stored decision. Record the cache policy and owner so future performance changes do not remove the protection.

Review telemetry

Logs should show that a token failed validation and which layer rejected it, without storing the raw token. Confirm that the account is not marked as successfully authenticated in the application when the request fails. Verify that repeated invalid-signature attempts generate a usable security event.

Test the alert path with a small, controlled sequence. The responder should be able to see the source address, target application and reason category. If the alert contains only a generic error with no application identity, the detection is not operationally useful.

Automate the regression

Add the invalid-signature case to the deployment test suite. Run it whenever the OIDC Provider module, gateway policy or Mendix compatibility line changes. The test should fail closed if the identity service or required signing-key endpoint is unavailable.

Keep a manual review for architecture changes that automation may not cover, such as a new API route or a newly federated identity provider. The automated case protects the known CVE; the review checks whether another path has adopted the same jti-only design.

Define completion

The remediation record should include the installed module version, the tested routes, the test identities, the expected failures, the actual responses and the log evidence. An application is complete only when the fixed version is deployed, negative cases fail safely and the owner has signed off the result.

That evidence is more useful than a screenshot of the marketplace package. It shows that the vulnerable decision is closed in the running system and that the organization can detect a regression.

References

Top comments (0)