🚗 旅遊接送,隨叫隨到

去機場還是探索城市?使用 Uber 讓你的行程更順暢。新用戶註冊享專屬禮遇!

立即預約 Uber

唔使登入就入侵你個站:WP Rocket 爆 9.8 分漏洞

WP Rocket 爆 9.8 分漏洞,550 萬個網站受影響,即刻更新到 3.24.2
以 WP Rocket 官方標誌製作的封面圖 · 標誌 © WP Rocket(WP Media)

發佈:2026 年 12 月 4 日 · 閱讀時間:約 5 分鐘 · 資料來源:The Hacker News、Patchstack、WP Rocket 官方 changelog

你個 WordPress 網站可能而家就開緊門畀黑客——而修復方法,只係撳兩下更新。WP Rocket 係好多網站用緊嘅收費快取插件,家陣爆出 9.8 分嚴重漏洞,攻擊者唔使登入就入侵到你個站。修補版早喺 11 月 19 日已經出咗,但黑客 11 月 25 日已經開始大規模掃蕩,未更新嘅網站就係佢哋嘅目標。

一眼睇晒

一眼睇晒

  • WordPress 收費快取插件 WP Rocket 爆出嚴重漏洞 CVE-2026-125812,CVSS 9.8 分(滿分 10 分);攻擊者唔使登入,就可以喺受影響網站寫入並執行 PHP 代碼
  • 影響 3.24.2 之前全部版本;WP Rocket 裝喺逾 550 萬個網站,全球逾 38.6 萬付費用戶
  • 觸發條件:開咗「LazyLoad for CSS background images」或「Host Fonts Locally」其中一項;兩項預設都係關閉,但係調校性能嘅網站好常用
  • 時間線:11 月 4 日研究員 Vorelito 經 Patchstack 漏洞賞金計劃舉報 → 11 月 19 日修補版 3.24.2 推出 → 11 月 23 日公開披露 → 11 月 25 日 15:27 UTC 錄得首次攻擊;11 月 26 日單日攔截數以萬計嘗試
  • 修復:更新到 3.24.2 或以上(最新 3.24.3,11 月 26 日推出);更新只會擋住新攻擊,唔會清除已經植入嘅檔案
  • 暫時更新唔到:關閉上面兩個功能,就係官方認可嘅臨時 workaround

發生咩事

WP Rocket 會喺訪客瀏覽器運行一個量度腳本,量度頁面再將結果回報網站,等插件可以優化頁面。問題係,插件對回報返嚟嘅網址驗證唔夠嚴——漏洞本身屬於路徑遍歷(CWE-22),攻擊者可以令網站下載攻擊者控制嘅內容,再存成 PHP 檔案執行。整個過程唔使登入,唔使任何權限。

Patchstack 喺 11 月 25 日 15:27 UTC 錄得第一次攻擊嘗試,起初係人手試,翌日已經變成自動化大規模攻擊,11 月 26 日單日就攔截咗數以萬計嘗試。Wordfence 亦喺自己嘅公告話,24 小時內攔截咗 135 次針對呢個漏洞嘅攻擊。攻擊來自多個獨立組織,唔係單一黑客。

修補版 3.24.2 早喺 11 月 19 日已經推出,官方 changelog 寫明係安全修復:「加強快取 CSS、字體同預連接檔案嘅驗證」。換句話說,修復早過攻擊足足 6 日——中招嘅,係未更新嗰批。

點解值得留意

第一,修補到攻擊之間只有 6 日空窗。11 月 19 日出修補、11 月 23 日公開披露、11 月 25 日就有人開波——黑客睇住公開資料就即刻動手,唔會等你慢慢更新。呢個速度,正正係現代漏洞攻擊嘅常態。

第二,更新唔等於清毒。Patchstack 講明:「更新只會擋住新攻擊,唔會清除攻擊者已經植入嘅檔案。」如果個站喺更新之前已經中招,後門檔案會繼續留喺伺服器入面,更新完都仲係俾人控制到。所以更新之後,仲要檢查有冇可疑檔案。

第三,WP Rocket 係收費插件,更新要有效授權。好多網站裝完插件之後無人專責跟進更新,授權過期都唔知,變咗長期暴露。呢類「裝咗就唔理」嘅插件,正正係攻擊者最鍾意嘅目標。

第四,香港好多 WordPress 網站都用 WP Rocket 做快取——公司站、網店、個人 blog 都有。就算你唔係網站管理員,你幫襯開嘅網店、你公司個網站,都有機會係其中一個。

邊個啱用

用緊 WP Rocket 嘅網站管理員同站主——即刻去檢查版本,呢篇就係為你而寫。幫客做網站嘅 freelancer 同 agency——你手上每一個客站都要逐個檢查。就算你唔係管理員,但你有 WordPress 網站、或者你公司網站係 WordPress,都值得將呢篇轉發畀負責 IT 嘅同事。

用之前要知

第一步:檢查自己用緊邊個版本

  • 登入 WordPress 後台,左邊選單去「外掛」→「已安裝外掛」,搵到 WP Rocket,版本號就寫喺插件名隔籬。低過 3.24.2,就要即刻更新。
  • 識用 WP-CLI 嘅話,喺伺服器打 wp plugin get wp-rocket --field=version 就睇到版本號。
  • 同時檢查兩個功能開咗未:WP Rocket → 設定 → 媒體(Media),睇吓「LazyLoad for CSS background images」同「Host Fonts Locally」有冇開到。開咗其中一項,先係真正暴露。

第二步:更新到 3.24.2 或以上

  • 更新之前,備份網站檔案同數據庫先——呢個習慣任何時候都唔可以慳。
  • 去「外掛」頁,WP Rocket 隔籬撳「立即更新」;更新完再確認版本號係 3.24.2 或以上(最新係 3.24.3)。
  • 更新完去 WP Rocket → 儀表板,撳「清除快取」,等新版本嘅驗證規則生效。
  • 注意:WP Rocket 係收費插件,更新要有效授權;授權過期嘅話,要續期先更新到。

第三步:暫時更新唔到,先用 workaround 頂住

  • 去 WP Rocket → 設定 → 媒體(Media)分頁。
  • 關閉「LazyLoad for CSS background images」。
  • 關閉「Host Fonts Locally」(即係將 Google Fonts 存喺自己伺服器嗰個選項)。
  • 撳「儲存」之後,再去儀表板清除快取。
  • 呢個只係臨時措施:兩個功能關咗,攻擊路徑就封咗,但係都應該盡快更新到 3.24.2 或以上,因為修補版仲加固咗其他相關驗證。

第四步:檢查有冇中招

  • 檢查呢三個目錄有冇唔認識嘅 PHP 檔案:wp-content/、wp-content/uploads/、wp-content/wp-rocket-config/;特別留意檔名似 wp-media-*.php 嘅檔案。
  • 睇吓伺服器 log 有冇異常嘅對外連線,或者有冇嚟自陌生主機嘅請求。
  • 如果懷疑已經中招:由 11 月 25 日之前嘅乾淨備份還原網站,再更新 WP Rocket 到 3.24.2 或以上,然後更改管理員密碼同數據庫密碼。

其他注意事項

  • 兩個功能都關咗嘅網站,攻擊路徑已經封咗,但係官方同 Patchstack 都建議照樣更新。
  • 目前未有公開數字講有幾多個網站實際被入侵——攔截數字只係反映攻擊量,唔等於成功入侵數目。
  • 本文唔係投資建議;詳情以官方公告為準。

資料來源:The Hacker News — Hackers Target Critical WP Rocket Flaw Allowing Unauthenticated Remote Code Execution;Patchstack — Critical WP Rocket RCE (CVE-2026-125812) Under Active Attack;WP Rocket 官方 changelog

免責聲明:詳情以官方公告為準;本文唔係投資建議。

English

Your WordPress site may be leaving the door open for hackers right now — and the fix takes just two clicks. WP Rocket, the paid caching plugin used by millions of sites, has a critical 9.8-rated vulnerability that lets attackers break in without logging in. The patch has been out since 19 November, but hackers started mass-scanning for unpatched sites on 25 November. If you have not updated yet, you are their target.

At a glance

  • WP Rocket, the paid WordPress caching plugin, has a critical vulnerability, CVE-2026-125812, rated CVSS 9.8 out of 10. Attackers need no login to write and execute PHP code on affected sites
  • Every version before 3.24.2 is affected. WP Rocket runs on more than 5.5 million websites, with over 386,000 paying customers worldwide
  • It only triggers when either “LazyLoad for CSS background images” or “Host Fonts Locally” is switched on. Both are off by default, but both are common on performance-tuned sites
  • Timeline: researcher Vorelito reported it through Patchstack’s bug bounty programme on 4 November → fixed release 3.24.2 shipped on 19 November → public disclosure on 23 November → first exploitation attempt recorded on 25 November at 15:27 UTC, with tens of thousands of blocked attempts in a single day on 26 November
  • The fix: update to 3.24.2 or later (latest is 3.24.3, released 26 November). The update only blocks new attacks — it does not remove files an attacker has already planted
  • If you cannot update right away, switching off the two features above is the officially recommended temporary workaround

What happened

WP Rocket runs a small script in visitors’ browsers that measures each page and reports the results back to the site, so the plugin can optimise the page. The problem is that the plugin did not validate those reported URLs strictly enough. The underlying weakness is path traversal (CWE-22): an attacker can make the site download content from a server they control and save it as a PHP file that then runs. No login and no privileges are needed at any point.

Patchstack recorded the first exploitation attempt on 25 November 2026 at 15:27 UTC. What began as manual probing turned into large-scale automated campaigns within a day, with tens of thousands of blocked attempts on 26 November alone. Wordfence said in its own advisory that it blocked 135 attacks targeting this flaw in a 24-hour window. The activity comes from several independent operators, not a single attacker.

Version 3.24.2, which contains the fix, shipped on 19 November — its changelog describes the security fix as “Improve validation of cached CSS, font and preconnect files.” In other words, the patch was available a full six days before the attacks began. The sites getting hit are the ones that have not updated.

Why it matters

First, the window between patch and attack was just six days: patch on 19 November, public disclosure on 23 November, first attack on 25 November. Attackers read the public disclosure and moved immediately. That speed is now normal for vulnerability exploitation.

Second, patching is not the same as cleaning up. As Patchstack puts it: “The update stops new attacks, but it does not remove files an attacker already planted.” If a site was compromised before it updated, the backdoor stays on the server even after the patch. Updating must be followed by a check for suspicious files.

Third, WP Rocket is a paid plugin, and updates need a valid licence. Many sites install a plugin and then nobody owns the updates — licences lapse unnoticed and the site stays exposed for months. “Install and forget” plugins are exactly what attackers look for.

Fourth, a large share of Hong Kong WordPress sites use WP Rocket for caching — company sites, online shops and personal blogs alike. Even if you are not a site admin, a shop you buy from or your company’s website could be one of them.

Who it’s for

Site admins and owners running WP Rocket — check your version now; this article is written for you. Freelancers and agencies that build sites for clients — every client site needs checking, one by one. And even if you are not an admin, if you run a WordPress site, or your company’s site is WordPress, forward this to whoever looks after IT.

Before you use it

Step 1: Check which version you are running

  • In the WordPress admin, go to Plugins → Installed Plugins and find WP Rocket — the version number is shown next to the plugin name. Anything below 3.24.2 needs updating now.
  • If you use WP-CLI, run wp plugin get wp-rocket --field=version on the server to see the version.
  • Also check whether the two features are on: WP Rocket → Settings → Media — look for “LazyLoad for CSS background images” and “Host Fonts Locally”. You are only truly exposed if at least one of them is enabled.

Step 2: Update to 3.24.2 or later

  • Back up your site files and database first — a habit worth keeping every time.
  • On the Plugins page, click “Update Now” next to WP Rocket, then confirm the version is 3.24.2 or later (the latest is 3.24.3).
  • After updating, go to WP Rocket → Dashboard and click “Clear Cache” so the new validation rules take effect.
  • Note: WP Rocket is a paid plugin, so updating requires a valid licence; renew it first if yours has expired.

Step 3: If you cannot update yet, use the workaround

  • Go to WP Rocket → Settings → the Media tab.
  • Turn off “LazyLoad for CSS background images”.
  • Turn off “Host Fonts Locally” (the option that stores Google Fonts on your own server).
  • Click “Save”, then clear the cache from the Dashboard.
  • This is only a temporary measure: with both features off, the attack path is closed — but update to 3.24.2 or later as soon as you can, because the fixed release also hardens other related validation.

Step 4: Check whether you have already been hit

  • Look for PHP files you do not recognise in these three directories: wp-content/, wp-content/uploads/ and wp-content/wp-rocket-config/ — watch in particular for files named like wp-media-*.php.
  • Review server logs for unusual outbound connections or requests from unfamiliar hosts.
  • If you suspect a compromise: restore the site from a clean backup taken before 25 November, update WP Rocket to 3.24.2 or later, then change the admin and database passwords.

Other things to know

  • Sites with both features off already have the attack path closed, but Patchstack and WP Rocket still recommend updating.
  • No public figure exists yet for how many sites were actually breached — blocked-attempt counts reflect attack volume, not successful compromises.
  • This is not investment advice; details follow the official advisories.

Sources: The Hacker News — Hackers Target Critical WP Rocket Flaw Allowing Unauthenticated Remote Code Execution; Patchstack — Critical WP Rocket RCE (CVE-2026-125812) Under Active Attack; WP Rocket official changelog

Disclaimer: details follow the official advisories; this is not investment advice.

分享呢篇 →

FacebookXThreadsWhatsAppLINE

如果你覺得呢篇文有用,可以贊助支持手痕繼續寫落去。

cards
Powered by PayPal