WordPress 'Click2Shell' Flaw Exposes Core CMS Logic to Silent Remote Code Execution
Security researchers at pwn.ai uncovered a high-severity vulnerability in the WordPress core theme installer workflow, dubbed Click2Shell, which allows an unauthenticated attacker to force an authenticated administrator into installing arbitrary themes from the official directory and executing arbitrary server-side PHP code. The core issue stems from an input-parsing discrepancy: the WordPress API sanitizes theme identifiers as standard slugs, whereas browser-side jQuery logic retains raw punctuation within selectors, allowing crafted URLs to trigger automatic installation routines. Researchers demonstrated that over 40 catalog themes execute PHP during Customizer preview routines even while inactive, enabling a zero-touch path to web server compromise.
This development matters because content management platforms frequently bridge public-facing web operations and internal infrastructure networks. Because the exploit triggers silently during routine administrator browsing sessions without altering the active public theme, security operations teams and site owners cannot rely on visual or front-end inspection to detect compromise. Organizations running self-hosted, decoupled, or headless WordPress instances on cloud infrastructure face immediate risk of lateral movement if the underlying PHP runtime has access to internal service meshes, database credentials, or instance metadata services.
Click2Shell highlights a persistent structural risk across modern application architectures: the decoupling of client-side administrative state from server-side privileged execution. While modern DevOps teams focus heavily on CI/CD pipelines, container immutability, and container image scanning, traditional monolithic applications and CMS platforms frequently retain legacy dynamic runtime loading mechanisms. When core frameworks permit arbitrary code ingestion from public catalogs under administrative privileges, even well-managed cloud workloads inherit critical supply-chain vulnerabilities directly into their web application tier.
In practice, engineering and security teams must upgrade all self-managed WordPress instances to version 7.1.1 (or the patched releases backported to version 4.7) immediately. Beyond patching, teams running CMS workloads in Kubernetes or cloud environments should enforce read-only container filesystems, disallow runtime file writes to wp-content directories, and strictly restrict outbound network traffic from web pods to prevent attacker-initiated staging and reverse shells. Organizations should also audit administrator roles, enforce short session lifetimes, and implement Web Application Firewall (WAF) filtering on query parameters targeting theme preview and customizer endpoints.
Read original source