Click2Shell WordPress Flaw Lets Hackers Execute PHP Code and Take Over Websites
A WordPress flaw lets attackers run code on sites by tricking an administrator into clicking a crafted link.
Overview
A security flaw in WordPress called Click2Shell allows attackers to run harmful code on websites by tricking a logged-in administrator into clicking a specific link. This issue affects organizations using WordPress versions prior to 7.1.1, which was released on September 17, 2026, to fix the problem. The vulnerability works by exploiting the theme-preview feature to silently install a theme from the official WordPress.org directory without the administrator manually clicking the install button. Because the installed theme remains inactive, the website looks normal, making it difficult for the administrator to notice the unauthorized change. Researchers at PWNAI reported that this forced installation can lead to a complete compromise of the site when combined with another vulnerability in a susceptible theme. WordPress identified this bug as one of 11 security fixes in the 7.1.1 maintenance and security release.
Terms in this story
- Hackers
- A person who explores and manipulates computer systems, either as a criminal intruder or a security researcher. In news headlines, the word hacker usually means an unauthorized intruder, though the security community also uses it for researchers who find and fix flaws.
- PHP
- A widely used server-side scripting language that builds dynamic web pages before sending them to browsers. Because millions of websites and content management systems run on PHP, a newly discovered vulnerability in the PHP engine can put a huge portion of the web at risk.
- exploits
- A piece of code or technique that uses a software flaw to break into or crash a system. Finding a vulnerability is only the discovery of a weakness, whereas an exploit is the working code or sequence of inputs that triggers that weakness in practice. Security+ objective 2.4 lists the term
- URLs
- The full web address used to locate a specific page, file, or resource on the internet. Security filters inspect every URL in an incoming message to see whether the domain name is a newly registered lookalike or points to a known credential-harvesting server. Security+ objective 4.5 lists the term
- CVE identifier
- The public tracking code assigned to a specific known security flaw in software or hardware. Every cataloged software flaw gets a unique CVE label so security teams, vendors, and news reports can talk about the exact same bug without confusion. Security+ objective 2.3 lists the term
- API
- A structured interface that lets one software program request data or actions from another program. Mobile apps, websites, and cloud services talk to backend servers through an API, and a poorly protected API can let attackers pull customer records in bulk. Security+ objective 4.7 lists the term
- server
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
- JavaScript
- The programming language that web browsers run to make web pages interactive, and that also runs on servers. Because every browser runs JavaScript automatically when loading a page, attackers use malicious JavaScript in cross-site scripting, fake browser updates, and compromised software packages.
- authenticated
- A person or account that has already signed in with valid credentials. Some vulnerabilities cannot be triggered by a stranger on the internet and instead require an authenticated user who already holds at least a basic account on the system.
- session
- An active logged-in period of communication between a user or device and a server. Once you log in to a website, the server tracks your session so you can click from page to page without retyping your password on every screen.
- permissions
- The specific rights granted to an account or app to read, write, or run files and services. When a mobile app or browser extension asks for broad permissions, such as reading every web page you visit, a malicious update can abuse those rights to steal passwords.
- nonce
- A random or non-repeating value used only once in a cryptographic protocol or login challenge. Encryption schemes and login handshakes include a fresh nonce on every message so an attacker cannot record a valid encrypted request and replay it later.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the GBHackers website. Cite the article, not this page.
Read the full article on GBHackers (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Vulnerability and patch
"A recently disclosed WordPress vulnerability..." Found by reading the article; these exact words are in it - Security+ 2.3 Explain various types of vulnerabilities.
"Click2Shell WordPress Flaw Lets Hackers Execute PHP Code and Take..." Found in the headline - CYBR 101 week 10: the web, cookies, phishing, incident response and logs
"Click2Shell WordPress Flaw Lets Hackers Execute PHP Code and..." Found in the headline - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"A recently disclosed WordPress vulnerability, known as Click2Shell, could let attackers..." Found in the opening sentences - CYBR 101 week 7: Linux, Windows, permissions and firewalls
"......on vulnerable sites after convincing a logged-in administrator to click a specially crafted link. WordPress..." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of web application vulnerabilities.
"WordPress vulnerability, known as Click2Shell..." Found by reading the article; these exact words are in it - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Determine and document software patches or the extent of releases that would harden vulnerable software.
"WordPress version 7.1.1, released on September 17, 2026..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role
Same story at other outlets
- WordPress Click2Shell flaw lets hackers execute PHP on the server
- Click2Shell WordPress Flaw Lets Attackers Gain RCE With a Single Malicious Link
- New WordPress Click2Shell Flaw Forces Theme Installs, Can Chain to Code Execution