WordPress Click2Shell flaw enables server-side PHP execution via crafted link

· Original article ↗

Summary

Click2Shell chains a WordPress Core CSRF flaw with theme installation to enable server-side PHP execution when a logged-in administrator visits a crafted link. WordPress fixed the issue in version 7.1.1; technical details and a PoC are public.

Key points

  • The Click2Shell chain affects WordPress Core 7.1.0 and earlier; WordPress fixed it in version 7.1.1.
  • An attacker can induce theme installation from the WordPress.org catalog and execute PHP when the inactive theme loads in the Customizer preview.
  • The attacker does not need a WordPress account, but a logged-in administrator must visit a crafted link; Author and Editor accounts lack the required theme-install permission.
  • The researcher published technical details and a proof-of-concept exploit.
  • The fix escapes the theme slug before using it in a jQuery selector and restricts the selector to actual theme cards.
  • Patchstack says enabling DISALLOW_FILE_MODS prevents forced theme or malicious plugin installation; updating is recommended.

Article Details

Vulnerability Types
  • Cross-site request forgery (CSRF)
  • Remote code execution (RCE)
Affected Versions
  • WordPress Core 7.1.0 and earlier
Exploitation Status
unknown
Exploit Availability
public_poc
Patch Status
available
Workarounds
  • Enable DISALLOW_FILE_MODS to prevent forced theme or plugin installation.

MITRE ATT&CK

People

Products

Related Articles