WordPress SAML SSO: What a Public Scan Cannot Prove

A WordPress SAML plugin can fail in the assertion, not on the homepage. Decoding a JWT does not validate a SAML assertion. A public scan cannot see the certificate check inside the plugin.

Back to Blog

WordPress SAML SSO: What a Public Scan Cannot Prove

WordPress SAML single sign-on sends a person to an identity provider and then accepts an assertion that says who they are. The assertion is an XML document with a signature, an audience, a recipient, and a short lifetime. It is not a JSON Web Token. Decoding a JWT does not validate a SAML assertion. The formats are different, and the checks are different. A green decode on a token you found in the browser does not mean the plugin verified the identity provider’s signature.

Recent plugin advisories have shown what that confusion costs: an attacker forges the response, the plugin accepts it, and a new administrator appears. Those events belong in a public plugin and theme scan for the version check, and here for the login design. A public website scan cannot see the validation code. This article keeps that boundary in the center.

What has to be true before you trust the assertion

The plugin must check the signature against the identity provider’s current certificate, not against a certificate an attacker supplied in the same response. It must reject algorithms you did not configure. It must confirm the audience is this site and the recipient is this site’s assertion-consumer URL. It must reject a response it has already seen, and it must reject a response outside its time window. It must not let the assertion choose a WordPress role unless you have an explicit map from identity-provider groups to roles you wrote down.

If any one of those checks is missing, the rest of the WordPress hardening does not matter for that login. The attacker never needs the local password. Role mapping is where “every authenticated employee becomes an administrator” sneaks in. Default the mapped role to subscriber, or to no account, and grant editor or administrator only from a named group.

A JWT in the browser is a different object

Some stacks use OpenID Connect and really do use JWTs. Some WordPress SAML plugins, after a successful assertion, set a normal WordPress cookie or even mint their own token for a mobile client. You may be able to paste that cookie’s value into the JWT decoder and see claims. Those claims describe the session the plugin already created. They do not replay the signature check on the XML assertion. The developer toolkit article explains what a decoded header and payload can tell you. Use it for JWTs. Do not point it at SAML and call the result validation.

If your identity provider is OIDC, follow an OIDC checklist: exact redirect URIs, PKCE for public clients, and issuer checks. Do not mix that checklist into a SAML plugin by analogy. The redirect and the signature still matter, and the wire format does not match.

What a public scan can see

The WordPress stack checker can see that the site looks like WordPress, which plugins leave public files, and whether login and XML-RPC answer. It might see a SAML plugin’s name in a URL. It cannot submit a forged assertion, and it should not. It cannot read the certificate stored in wp-admin. It cannot tell whether the plugin verifies signatures. A clean scan of the homepage is compatible with a completely broken SAML check.

Use the scan for what it is good at: outdated plugin evidence when a version is visible, and public endpoints you did not mean to leave open. Use authenticated website scanning only for pages that appear after login. That still does not exercise the assertion validator. The validator has to be reviewed in the plugin’s settings and in the vendor’s fixed version when an advisory says validation was wrong.

What to verify after an advisory

Confirm the installed version is the vendor’s fixed release, using the triage questions in the CVE article. Then open the plugin settings and read the certificate fingerprint against the identity provider’s current certificate. An old certificate left in the plugin is a second trust anchor. Remove unused identity providers. Confirm the assertion consumer URL is HTTPS on the production host, not a staging URL copied forward.

Create a test user in a low-privilege group and sign in. Confirm they do not become an administrator. If the test is easy to get wrong, do it on staging that uses a separate identity-provider application, so a mistake does not map your real staff to admin. After production changes, sign in once yourself and check the user list for new administrators you did not create. That last look is the same look described in how to check site compromise signals, because a bad SAML check and a backdoor both end at a rogue admin.

Local passwords beside SSO

If SAML is the door, local WordPress passwords for those same people are a second door. Disable local passwords for SSO users when the plugin allows it, or set them to values nobody knows and that cannot be reset by email without an identity-provider check. Otherwise the SAML certificate work is optional for the attacker, who will use the password reset. Passkeys belong on the identity provider in this design, not only on a local user nobody uses. How to test password strength is how you judge the local password you still keep.

Keep one break-glass administrator that does not depend on the identity provider, with a long random password stored offline, and do not use that account daily. If the identity provider is down, that account is how you get in. If that account’s password is on a sticky note, it is how everyone else gets in too.

Retest after the identity provider changes a certificate

Identity providers rotate signing certificates. The plugin will keep trusting the old one until you replace it, and it may trust both during a rollover if you leave both configured. When the provider announces a new certificate, put the date on the calendar, install the new certificate, sign in with the low-privilege test user, and only then remove the old one. Removing it first locks out the staff who are in the middle of a workday.

A public scan on that morning will still look like the same WordPress site. The change that mattered is the fingerprint in the plugin. Write the fingerprint, or the certificate's end date, into the maintenance note so the next rotation is not a surprise outage. If sign-in fails, the break-glass admin is the way back in. That is the drill, and it is worth doing once on purpose before you need it on a Monday.

Store the identity-provider certificate expiry next to the plugin version. Those two dates are the maintenance calendar. The homepage scan will not remind you of either one.

Frequently asked questions

Can I validate a SAML response by decoding it as a JWT?

No. A SAML assertion is signed XML. A JWT is a different structure. A decoder that shows JWT claims is not performing SAML signature validation.

Does a clean WordPress scan mean SSO is configured safely?

No. The scan sees public plugin traces and public routes. Signature checks, audience, and role mapping are inside the plugin and the identity provider.

Should every employee map to administrator?

No. Map a named group to administrator. Everyone else should land in a role that cannot install plugins or edit users. Test with a low-privilege account after every plugin update.