Admin Menu Tree Page View [CSRF, Privilege Escalation]

Description

Plugin implements AJAX action admin_menu_tree_page_view_move_page which calls back the function admin_menu_tree_page_view_move_page. The later does not implement any anti-CSRF controls or security checks.

Exploiting this vulnerability a malicious actor can only change the order and/or parent of specified pages, so the damage is minimal.

The AJAX action is a privileged one so it’s only available for registered users. Even so it doesn’t implement any capabilities checks so it’s available to all users no matter the access level. This could allow any registered user to change pages order and/or parent.

Exploiting this vulnerability could lead to a minor data integrity loss but considering the complexity of the attack and the real outcome for an attacker, the exploitation of this vulnerability seems rather unlikely to occur.

PoC

Use the following form to change the order or the parent of pages.