AI Security AI安全 4d ago Updated 4d ago 更新于 4天前 45

Forminator WordPress Flaw Can Enable Unauthenticated RCE via Malicious PHP Uploads Forminator WordPress漏洞可通过恶意PHP上传实现未认证远程代码执行

CVE-2026-15748: Critical unauthenticated RCE in Forminator WordPress plugin (CVSS 9.8) via arbitrary PHP file upload due to insufficient file type validation in `handle_file_upload()` CVE-2026-15826: Critical authentication bypass in User Profile Builder plugin (CVSS 9.8) allowing unauthenticated login as admin (user ID 1) via integer coercion of WP_Error object Both vulnerabilities were patched in July 2026; Forminator update released July 31 (v1.56.2), User Profile Builder patched July 16 (v3. Forminator插件存在未认证任意文件上传漏洞(CVE-2026-15748),可导致远程代码执行,影响60万+活跃安装量 User Profile Builder插件存在认证绕过漏洞(CVE-2026-15826),攻击者可未认证登录为管理员(用户ID 1),影响4万+安装量 两个漏洞CVSS评分均为9.8,已分别在1.56.2版本(7月31日)和3.16.5版本(7月16日)修复

65
Hot 热度
60
Quality 质量
65
Impact 影响力

Analysis 深度分析

TL;DR

  • CVE-2026-15748: Critical unauthenticated RCE in Forminator WordPress plugin (CVSS 9.8) via arbitrary PHP file upload due to insufficient file type validation in handle_file_upload()
  • CVE-2026-15826: Critical authentication bypass in User Profile Builder plugin (CVSS 9.8) allowing unauthenticated login as admin (user ID 1) via integer coercion of WP_Error object
  • Both vulnerabilities were patched in July 2026; Forminator update released July 31 (v1.56.2), User Profile Builder patched July 16 (v3.16.5)
  • Exploitation of Forminator requires a form containing both a File Upload field and a Select field; User Profile Builder exploit requires "Automatically Log In" setting enabled
  • Together these flaws affect over 640,000 WordPress installations and enable complete site compromise without any authentication

Why It Matters

These vulnerabilities demonstrate how seemingly minor input validation and type-coercion flaws in widely deployed WordPress plugins can lead to catastrophic unauthenticated remote code execution and full administrative takeover. For AI practitioners and security professionals, they underscore the critical importance of supply-chain security and the need to keep all third-party dependencies patched, as compromised plugins remain one of the most common attack vectors against web applications.

Technical Details

  • CVE-2026-15748 (Forminator): The handle_file_upload() function uses a dangerous-extension blocklist that performs exact-key matching, which is bypassed by pipe-alternative MIME type keys. A forged Select field value injects attacker-controlled upload field configuration into a public submission handler, allowing arbitrary PHP file uploads. Default uploads are protected by .htaccess, but custom upload storage directories may lack this safeguard because the directory is created on first frontend request before the WordPress .htaccess helper loads.
  • CVE-2026-15826 (User Profile Builder): The wppb_log_in_user() function calls absint() on the return value of wp_insert_user() before performing an is_wp_error() check. When a registration form submits a username of 61–70 characters, WordPress core returns a WP_Error object, but absint() coerces it to integer 1 (the admin user ID) before the error check can short-circuit, causing the plugin to issue a transient-backed autologin nonce for the administrator account.
  • Both vulnerabilities carry a CVSS score of 9.8 (Critical) and require no authentication for exploitation.
  • Forminator has 600,000+ active installations; User Profile Builder has 40,000+ active installations.

Industry Insight

  • WordPress plugin ecosystems remain a high-value attack surface; security audits should prioritize plugins with file upload and authentication-handling functionality, especially those with large install bases.
  • The pipe-alternative MIME type bypass and integer coercion of WP_Error objects highlight the need for defense-in-depth: strict allowlist-based file type validation and proper error-object handling before any type coercion in plugin code.
  • Site operators should implement automated patch management for WordPress plugins and consider Web Application Firewalls (WAFs) that can detect and block exploitation attempts for known vulnerabilities like these before updates are applied.

TL;DR

  • Forminator插件存在未认证任意文件上传漏洞(CVE-2026-15748),可导致远程代码执行,影响60万+活跃安装量
  • User Profile Builder插件存在认证绕过漏洞(CVE-2026-15826),攻击者可未认证登录为管理员(用户ID 1),影响4万+安装量
  • 两个漏洞CVSS评分均为9.8,已分别在1.56.2版本(7月31日)和3.16.5版本(7月16日)修复

为什么值得看

这两个WordPress插件漏洞均允许未认证攻击者实现站点完全接管,涉及超过64万活跃安装量。对WordPress生态的开发者、运维人员和安全从业者具有重要警示意义,揭示了插件开发中常见的输入验证和错误处理缺陷。

技术解析

  • Forminator漏洞根因在于handle_file_upload()函数中文件类型验证不足,危险扩展名黑名单采用精确键匹配,可通过管道替代MIME类型键绕过;结合伪造的Select字段值注入攻击者控制的上传配置
  • User Profile Builder漏洞源于wppb_log_in_user()函数在调用is_wp_error()检查前对wp_insert_user()返回值执行absint(),当用户名长度为61-70字符时WordPress核心返回WP_Error对象,但absint()将其强制转换为整数1,导致绑定到用户ID 1的自动登录nonce被返回
  • 默认配置下文件上传目录受.htaccess保护,但若管理员配置了自定义文件上传存储根目录,该目录在首次前端请求时创建,此时负责写入.htaccess的WordPress辅助函数未加载,导致PHP文件可被执行
  • 两个漏洞均无需认证即可利用,攻击门槛极低,只需提交构造的表单或注册请求即可触发

行业启示

  • WordPress插件生态安全审计需重点关注文件上传和认证逻辑,尤其是第三方插件的输入验证和错误处理机制
  • 管理员应定期检查插件更新,启用自动更新或建立补丁管理流程,避免已知漏洞被利用
  • 自定义配置(如自定义上传路径)可能引入额外安全风险,需确保安全措施(如.htaccess规则)在自定义路径中同样生效

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Security 安全 Research 科学研究