Exploit database

GH-6619317e0cd9902e082b21d2f8f16c38

daniel616/cve-2022-21661-demo

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2022-21661

10 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files98
daniel616/cve-2022-21661-demoRevision 5478a08b2d12
Next files →

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

src/wp-admin/options-head.php

PHP · 492 bytes
<?php
/**
 * WordPress Options Header.
 *
 * Displays updated message, if updated variable is part of the URL query.
 *
 * @package WordPress
 * @subpackage Administration
 */

wp_reset_vars( array( 'action' ) );

if ( isset( $_GET['updated'] ) && isset( $_GET['page'] ) ) {
	// For back-compat with plugins that don't use the Settings API and just set updated=1 in the redirect.
	add_settings_error( 'general', 'settings_updated', __( 'Settings saved.' ), 'success' );
}

settings_errors();