Skip to content
OAuth / SSO Write-up Advanced

One slug, seven editions: the miniOrange SAML SSO bug that let anyone log in as your WordPress admin

Two authentication bypasses in the miniOrange SAML 2.0 Single Sign On WordPress plugin let an unauthenticated attacker forge a SAML assertion and sign in as any existing user, including administrators. The public advisories only covered the free edition, so six paid editions stayed silently vulnerable and were reported as unaffected by vulnerability databases.

Dave Jong Follow

Published on patchstack.com

Reported by the DigitalOcean security team, with root cause analysis by DigitalOcean, coverage and vendor follow-up handled jointly with Patchstack. Most vulner

Dave Jong, on patchstack.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The plugin let the attacker pick the signature algorithm and then reused the trusted RSA public key as an HMAC secret, and separately treated OpenSSL's error return value (-1, truthy in PHP) as a valid signature.

Impact

An attacker could obtain a WordPress administrator session; in the observed activity the session was blocked because admin operations sat behind a trusted network, and exploitation attempts were seen in the wild against sites regardless of edition.

What the attacker needed

SAML SSO plugin installed; Attacker can reach the SAML endpoint; IdP metadata public key is known

The fix

It was fixed in 17.0.5 and 17.0.6 for the Standard edition, with narrow interim hotfixes offered for those who cannot upgrade, though the article says a full fix needs an RSA algorithm allowlist and removal of the public-key recasting path.

How it was found

  1. Fetch the identity provider's public key from its metadata endpoint.
  2. Set the signature method in the SAML response to HMAC-SHA1 and use that public key as the HMAC secret.
  3. Sign your own assertion and send it; the plugin verifies it as genuine.
  4. Alternatively, send a SAML response with a malformed signature so the OpenSSL check errors out and returns -1.
  5. The plugin evaluates that result as a boolean and accepts the signature.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

SAML is a way for a website to trust a separate login service: the service sends a signed statement saying who you are, and the site checks the signature. Here the plugin let the incoming message choose which signing method to use, and it accepted the service's public key as a shared secret, so anyone holding that public key could sign their own statement. A second bug treated an error from the signature check as a pass, so a broken signature was accepted too.

What is OAuth / SSO?

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.

More by Dave Jong

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

OAuth and single sign-on flaws

The lesson behind this report.

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.