AI-generated editorial illustration; not a documentary photograph.
WordPress released version 7.1.1 on September 17 to fix Click2Shell, a core vulnerability that can make a logged-in administrator install and preview an inactive theme after opening a crafted link. Security firm pwn.ai demonstrated how the flaw could be chained with a separate theme vulnerability to execute code on the server.
How the forced installation works
The attack exploits inconsistent handling of a theme value embedded in a URL. The WordPress.org directory interprets it as a normal theme name and returns a legitimate theme, while browser-side WordPress code reuses the original value, including attacker-controlled punctuation, when selecting an item on the page. That manipulation redirects WordPress's own script to the Install button.
Because the administrator is already authenticated, their session provides the permissions and security token required for installation. The theme remains inactive, leaving the site's appearance unchanged and making the action less visible.
Code execution requires another flaw
Click2Shell does not accept an arbitrary theme package and does not independently provide remote code execution. Pwn.ai reached that outcome by selecting Mobile Repair Zone, a theme containing a separate background handler that could download and run a package from a supplied web address without checking authorization or a security token.
WordPress can load PHP from an inactive theme while generating a Customizer preview. The researchers used that behavior after the forced installation to reach the vulnerable handler and run attacker-controlled code.
Affected versions and severity
WordPress says the issue affects core versions from 6.0 through releases immediately preceding the fix. The security updates extend across supported branches back to 4.7, allowing administrators to install either 7.1.1 or the corresponding patched release for their branch.
Pwn.ai rated the standalone forced-install flaw high severity at CVSS 7.1 and the demonstrated chain critical at 9.6. WordPress has not issued its own severity score, and no CVE identifier has yet been assigned. The source reports no evidence of exploitation in real attacks.
Update is the stated mitigation
WordPress recommends installing the security release immediately, while sites configured for automatic core updates should receive it automatically. Neither WordPress nor pwn.ai provided a separate workaround. Exploitation still requires a logged-in administrator to open the attacker's link, but updating core blocks the demonstrated chain regardless of the site's currently active theme.
Source: New WordPress Click2Shell Flaw Forces Theme Installs, Can Chain to Code Execution

Leave a Reply