Lucene search

K
wpvulndbRamuel GallWPVDB-ID:EADFCE09-978A-4B18-97C1-1267636B7325
HistoryMar 31, 2020 - 12:00 a.m.

WordPress SEO Plugin - Rank Math < 1.0.41 - Redirect Creation via Unprotected REST API Endpoint

2020-03-3100:00:00
Ramuel Gall
wpscan.com
12

0.005 Low

EPSS

Percentile

76.6%

The WordPress SEO Plugin – Rank Math plugin includes a number of optional modules, including a module that can be used to create redirects on a site. In order to add this feature, the plugin registered a REST-API endpoint, rankmath/v1/updateRedirection, which failed to include a permission_callback for capability checking. The endpoint called a function, update_redirection, which could be used to create new redirects or modify existing redirects, with an important limitation. The redirect could not be set to an existing file or folder on the server, including the site’s main page. This limited the damage to some extent in that, while an attacker could create a redirect from most locations on the site, including new locations, or any existing post or page other than the homepage, they could not redirect visitors immediately upon accessing the site.

PoC

curl -X POST --data “redirectionUrl=http://evilsite.com&redirectionSources;=&hasRedirect;=true” http://example.site/wp-json/rankmath/v1/updateRedirection

CPENameOperatorVersion
seo-by-rank-mathlt1.0.41

0.005 Low

EPSS

Percentile

76.6%

Related for WPVDB-ID:EADFCE09-978A-4B18-97C1-1267636B7325