Daniel Bae
Menu

Defensive edition

Two issuers an identity system has to trust

Daniel BaeOriginally published

SecurityHack The BoxIdentity

A web application accepted identity claims, and SSH accepted certificates. In each case the important question was who had authority to make the claim.

Reading an identity claim

The application used pac4j to process an encrypted token containing a JWT. On the library version in this lab, pac4j-jwt 6.0.3, opening the outer envelope did not consistently establish that a trusted issuer had signed the claims inside it (CVE-2026-29000). Encryption shows who a message was meant for, not who wrote it. The application relied on that missing guarantee when it chose a user’s role, and the lab confirmed the flaw could yield an administrative session.

I would move the application to a supported release containing the vendor’s fix (4.5.9, 5.7.9 or 6.3.3 and later on the matching lines). Its acceptance tests should include a valid signed claim, an invalid signature, a missing signature, and an unreadable envelope. Only the first case should establish an authenticated identity.

What an administrator needs to see

The administrative dashboard displayed an application secret that also served as an operating-system credential. Displaying the value gave a web role authority outside the application. A dashboard can show whether a credential is configured and when it was rotated. Those facts can support routine administration while the value itself stays in the secret store.

Possession of the signing key

The SSH certificate authority’s private key was readable by a deployment group on a host that trusted that authority. A principals file can narrow which names an account accepts. It cannot repair a signing key in the wrong hands, and a short certificate lifetime does not help either, because the holder of the key can issue another certificate. A host verifying certificates needs only the public key. Signing should take place in an issuance service that checks which identities the requester may represent.

If the private signing key may have been copied, recovery includes replacing the authority and updating the trusting hosts. Tightening a file permission can stop future reads. Certificates and keys already issued require their own accounting.