Independent hosting research · no paid rankings

Desk checked

Setup Basics

We secured WordPress websites against WP2Shell before the vulnerability became public.

Published: Last checked:

Chained WordPress flaws allowed full takeover. AI discovery and pre-disclosure protections made patch timing critical.

WP2Shell's main lesson is not that one hosting provider blocked an attack, but that modern software risk is increasingly a combination problem. The provided incident account says two WordPress flaws—Common Vulnerabilities and Exposures entry 2026-63030 and Common Vulnerabilities and Exposures entry 2026-60137—could be chained by an unauthenticated attacker to create an administrator account, log in, and upload a malicious plugin.

We secured WordPress websites against WP2Shell before the vulnerability became public.

The individual scores, 9.8 and 5.9 on the Common Vulnerability Scoring System, did not fully describe the combined effect. The response also shows a shrinking patch gap: Hostinger said it deployed firewall rules across shared hosting servers before the July 17, 2026 disclosure, while attackers moved within about 90 minutes after details became public.

The chain was more dangerous than its individual scores

FlawCommon Vulnerabilities and Exposures entryScoreAssessment in sourceEffect in chain
Representational State Transfer API batch-route confusion2026-630309.8 CriticalUsed in real attacksEntry point for chained control
Structured query language injection in WP_Query2026-601375.9 MediumUsed in real attacks; if combined with the Representational State Transfer API flaw, could give full controlAdministrative takeover

Neither flaw required a vulnerable plugin or special configuration. Even a default WordPress installation was exposed, with no existing account or login required. Sites running WordPress 6.9 or 7.0 were exposed to the full chain, while sites running WordPress 6.8 were affected by only one of the two flaws. Versions before 6.8 were not affected.

The score table shows why looking at individual flaws can be misleading. A 5.9 Medium score may understate real-world danger when that flaw can be combined with a 9.8 Critical flaw to produce full site takeover.

Patching became a countdown

WordPress enables automatic updates by default, helping websites receive critical security fixes without manual intervention. However, a global rollout still takes hours, and some websites do not receive automatic updates at all.

Publishing a security patch can also reveal how to exploit the vulnerability it fixes. By comparing updated code with its previous version, attackers can identify what changed, pinpoint the vulnerability, and develop exploits targeting websites that have not updated yet.

The provided account cites Mandiant's research showing a shrinking time-to-exploit window:

PeriodTime-to-exploit window
2018–201963 days
2020–early 202144 days
2021–202232 days
20235 days
2025around minus 7 days

A negative value means exploits often appeared before patches were released, according to M-Trends 2026.

The researcher who discovered the WP2Shell chain, Adam Kues of Searchlight Cyber, used an AI model to identify the chain in about 10 hours, incurring only about $25 in compute costs. Marco Chiesi, Hostinger's Head of WordPress, said finding such a vulnerability is within reach of practically everyone and that AI has accelerated timelines enormously.

Coordination and timing

Protecting websites before a vulnerability goes public requires coordination that mostly happens behind the scenes. The WordPress core security team shares only what a few companies need to prepare defenses, and keeps the group small on purpose: the more people who know about a vulnerability before the fix, the higher the risk of a leak.

The collaboration culminated in WordPress 7.0.2, the security release that addressed WP2Shell on July 17, 2026. Hostinger was among seven companies acknowledged in the release announcement, alongside Altis, Automattic, Bluehost, Cloudflare, GoDaddy, and WP Engine.

The account says access to that small group is not purchasable but depends on trust and relationships built over years of contributing and attending WordCamps.

The timeline in the source shows:

TimeWhat happened
Thursday, July 16, eveningThe WordPress core security team shared initial vulnerability information and the first firewall rule.
Overnight into FridayThe first rule was tested on a single server, then rollout began. Rules were refined through several versions.
Friday, July 17, early afternoonHostinger said protection was in place across every shared server, hours before public disclosure.
Friday, July 17, 18:45 Coordinated Universal TimeWordPress released version 7.0.2 and publicly disclosed vulnerability details. Automatic updates began rolling out.
Saturday, July 18Hostinger followed up on websites not reached by the automatic update process.

The mitigation problem: four rule versions in 22 hours

Firewall rules can block attacks, but they can also block legitimate requests. The simplest fix, blocking the vulnerable endpoint entirely, would have broken the block editor for every site.

Between July 16 and 17, the firewall rules went through four versions in about 22 hours.

VersionWhat it changed
FirstBlocked malformed requests to the Representational State Transfer API batch endpoint, but only when accessed via the standard method.
SecondWidened the rule's coverage after other access methods were found.
ThirdSplit the rule into two rules with stricter validation of the request path.
FourthAdded protection against nested batch requests and was shared just before release.

The WordPress core security team held the release until hosts confirmed their firewall coverage, so rules had to be live first.

Stack-specific workarounds

The exploit could be sent as a JavaScript Object Notation request body, which the company's web application firewall did not inspect at the time. Enabling that inspection surfaced a bug in a third-party component, which was reported to the vendor.

The team wrote its own rules that inspect the raw request body directly. When the final rule set arrived, one of its rules would have undone that workaround, so the team kept its own version and adopted the rest.

Not every part of the infrastructure could run the same rules. Where a firewall could not apply the precise rules, broader measures were used instead: blocking the entire batch endpoint at the CDN level in front of the company's own WordPress sites, or disabling vulnerable routes with a small code snippet.

Testing and one false positive

Each version was first deployed to one production server, then to three servers across different data centers. The team watched logs for about an hour before scaling up.

Test scripts shared by other hosts and community contributors sent both attack payloads, which had to be blocked, and normal requests, which had to pass. After the JavaScript Object Notation workaround, the suite reported 30 blocked attacks, 10 legitimate requests allowed, and 0 failures.

Three factors justified moving quickly: the scope was narrow, a single Representational State Transfer API endpoint; normal requests in the test suites kept passing; and the alternative was exposing millions of sites to unauthenticated remote code execution.

One rule went too far. To support the JavaScript Object Notation workaround, the team added a nested-batch rule of its own. It blocked legitimate requests from WordPress's block-based Widget Editor, which saves widgets through the same batch endpoint. The team had assumed the endpoint was rarely used in normal browsing, and was partly wrong.

Customers reported that saving widgets failed, and tickets reached engineering about three weeks after the incident. Support unblocked affected sites with per-site exceptions while the team fixed the rule. The rules remained active everywhere else because many sites were still running vulnerable versions.

Decisions beyond the rules

Two other choices shaped the response. Customers were not notified before details were public, because an early warning could have tipped off attackers. WordPress.org chose to force updates for affected versions, accepting the risk that if an update broke something, it would break everywhere at once.

The company compared layered protection to an apartment building:

LayerRole
CDN firewallStops attacks before they reach the server
Hosting provider firewallChecks requests arriving at the server
Security updateFixes the underlying issue permanently

The update is the permanent fix. Firewall rules are a temporary layer that can cover many sites at once, especially on shared hosting, where one rule can protect many installations without customer action.

Public exploitation and vendor counts

WordPress published the vulnerability details at 18:45 Coordinated Universal Time on July 17. Attackers moved fast.

Patchstack recorded the first attack attempts about 90 minutes after WordPress released 7.0.2. By July 19, VulnCheck had verified more than two dozen proof-of-concept exploits. On July 21, the Cybersecurity and Infrastructure Security Agency added both vulnerabilities to its list of actively exploited vulnerabilities, and a fully working end-to-end exploit was published the next day.

Security vendors counted the attacks they blocked:

VendorFigure
MonarxOver 2 million blocked requests over the disclosure weekend
Imunify360More than 29 million blocked attempts, peaking at over 9 million in a single day
CrowdSecMore than 62,000 attacking IP addresses in a rolling 15-day window five weeks after disclosure

For most Hostinger customers, the account says nothing changed because firewall rules had been in place for hours before the first attacks arrived. Protection did not end with firewall deployment. In the following days, the team monitored the situation, diagnosed websites that had not updated automatically, and helped bring them up to date. Targeted notifications were sent to customers whose WordPress versions were not automatically updated, Customer Success was briefed, and the AI support assistant was updated.

What worked and what did not

What workedWhat did not
Early confidential coordination with the WordPress core security teamIndividual scores did not capture the combined chain risk
Multiple firewall rule versions tested before rolloutOne custom rule created a false positive for the Widget Editor
Broad protection across shared hosting infrastructureStack-specific workarounds were needed because the web application firewall did not inspect JavaScript Object Notation bodies
Follow-up on sites not reached by automatic updatesAutomatic updates still do not reach every site immediately
Holding release until host coverage was confirmedForced updates create the risk of widespread breakage if an update fails

Limitations and uncertainty

The account is a provider's incident narrative, not an independent post-incident audit. Vendor block counts measure observed traffic, not necessarily unique attackers, successful compromises, or all attempts across the internet.

Firewall rules are temporary mitigations. They can reduce exposure while updates are deployed, but they can also fail in two directions: missing an attack path or blocking legitimate functionality. The WP2Shell response shows both risks.

The patch distribution model remains uncertain. Automatic updates help, but some sites do not receive them, and forcing updates can spread compatibility problems as quickly as it spreads fixes.

Questions

Was WP2Shell limited to one WordPress version?
No. Sites running WordPress 6.9 or 7.0 were exposed to the full chain. Sites running WordPress 6.8 were affected by only one of the two flaws. Versions before 6.8 were not affected.

Did firewall rules replace the update?
No. The security update remains the permanent fix. Firewall rules were used as an interim protection layer while updates were distributed.

Did customers need to act?
Hostinger said protection was deployed across shared hosting before disclosure and that most customers did not notice anything. It also said it followed up with sites not reached by automatic updates and sent targeted notifications.

Source material: the provided incident account, including details attributed to WordPress, Hostinger, Adam Kues of Searchlight Cyber, Mandiant, Patchstack, VulnCheck, the Cybersecurity and Infrastructure Security Agency, Monarx, Imunify360, and CrowdSec.

Last updated: July 22, 2026

Spec tagsWordPress securityvulnerability chainingpatch timingAI discoverywebsite takeover

Reader notes 0

  • No notes yet. Corrections and first-hand test results are welcome.