字号·· | 护眼
漏洞档案 · 严重

WordPress Smart Google Code Inserter 插件 认证绕过(CVE-2018-3810)

CVE-2018-3810 别名:GHSA-F59R-V67M-78WF
CVSS 9.8 / 3.0 EPSS 91.3% CISA KEV 在野利用 公开 PoC · 3 Nuclei 模板
综合风险91/ 100
CVSS9.8严重
EPSS91.3%30 天利用概率
机构收录时间2018-01-01更新 2026-12-03

研判简报

概述

WordPress 插件 Smart Google Code Inserter 的 smartgooglecode.php 中,saveGoogleCode() 函数未校验请求是否来自已授权用户,任何未认证访问者都能通过 sgcgoogleanalytic 参数更新插件保存的代码,而这些代码会在站点所有页面输出,从而形成未授权写入并导致 XSS。攻击者可借此注入任意 JavaScript/HTML,用于挂马、钓鱼、植入恶意跳转或窃取会话。任何仍在运行 3.5 之前版本的 WordPress 站点都应当关注,尤其是长期未维护或已弃用的实例。该漏洞同时已被 CISA KEV 收录并被 CISA SSVC 标记为「正在被利用」。

严重性

CVSS 3.0 为 9.8(critical),综合风险分 91.46/100;EPSS 30 天利用概率 91.3%(百分位 99.9%,2026-11-26)。攻击面是面向公网的 WordPress 插件端点,无需认证、无需用户交互。

利用状态

核查日期 2026-11-26:CISA KEV 已收录(收录日期 2023-11-27,要求动作的期限「材料未给出」);CISA SSVC 判定 exploitation=active;已有公开 Nuclei 检测模板 http/cves/2018/CVE-2018-3810.yaml;Exploit-DB/公开 PoC 1 条。勒索软件关联:材料未给出。参考材料所附 VulnCheck 页面为通用漏洞利用数据库列表,未提供该 CVE 的额外利用数据。

受影响产品

oturia:smart_google_code_inserter 全部 <3.5 版本;参考材料实测版本为 3.4。组件为 WordPress 插件 smart-google-code-inserter 中的 smartgooglecode.php,该文件中的 saveGoogleCode() 函数存在缺陷。部署形态为自托管 WordPress 站点,插件对外暴露 wp-content/plugins/smart-google-code-inserter/ 路径。

修复版本

官方修复版本为 3.5(结构化提取:smart_google_code_inserter 3.5)。参考材料披露时间线称厂商于 2017-11-30 发布更新,官方记录发布时间为 2018-01-01,两者存在出入,以官方记录为准。

缓解措施

无法立即升级时:停用并删除该插件(功能可由主题或其它受维护插件替代);在 WAF/反向代理层拦截针对 smartgooglecode.php 及 action=savegooglecode 的 POST 请求;限制 /wp-content/plugins/ 下 PHP 的直接访问;若无法修复,KEV 要求按厂商指引缓解或停止使用该产品。

响应步骤

  1. 清点资产,确认是否存在 smart-google-code-inserter 目录及其版本号。
  2. 检查插件保存的代码字段与页面输出中是否存在非预期的 <script>/<iframe>/外链。
  3. 排查访问日志中对 smartgooglecode.php 的未认证 POST(含 sgcgoogleanalytic 参数)。
  4. 升级至 3.5 或彻底卸载插件;同时轮换可能暴露的凭据并清理已注入内容。
  5. 使用现有 Nuclei 模板对站点做批量复测。
  6. 参考材料另列 SQL 注入为 CVE-2018-3811,本条官方记录仅涵盖认证绕过;排查时一并评估该注入面,具体细节以对应记录为准。

参考来源

  1. https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2018-3810kev
  2. https://vulncheck.com/xdb/0657149024b8exploit,vulncheck_xdb
  3. https://github.com/nth347/CVE-2018-3810_exploitpoc,github,exploit,poc_github
  4. https://vulncheck.com/kev/cve-2018-3810advisory,vulncheck_kev
  5. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-3810.yamlexploit,nuclei
  6. https://wordpress.org/plugins/smart-google-code-inserter/#developersx_refsource_MISC,x_refsource_MISC,x_transferred,Release Notes,Third Party Adviso
  7. https://limbenjamin.com/articles/smart-google-code-inserter-auth-bypass.htmlx_refsource_MISC,x_refsource_MISC,x_transferred,Exploit,Third Party Advisory,adv
  8. https://wpvulndb.com/vulnerabilities/8987x_refsource_MISC,x_refsource_MISC,x_transferred,Third Party Advisory,VDB Entry,a
  9. https://www.exploit-db.com/exploits/43420/exploit,x_refsource_EXPLOIT-DB,exploit,x_refsource_EXPLOIT-DB,x_transferred,Expl
  10. https://euvd.enisa.europa.eu/vulnerability/EUVD-2018-15599advisory,euvd
  11. https://github.com/lucad93/CVE-2018-3810exploit,poc_github
  12. https://github.com/cved-sources/cve-2018-3810exploit,poc_github