MOON
Server: Apache
System: Linux server.netcommlabs.in 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64
User: dermova (1051)
PHP: 5.4.45
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dermova/www/india/wp-content/plugins/jetpack/modules/site-icon/upload-site-icon.php
<?php 


/**
 * Uploading a site_icon is a 3 step process
 * 
 * 1. Select the file to upload 
 * 2. Crop the file
 * 3. Confirmation page 
 */
$step = ( isset( $_REQUEST['step'] ) ? $_REQUEST['step'] : 1 );
$nonce = ( isset( $_REQUEST[ '_nonce' ] ) ? $_REQUEST[ '_nonce' ] : false );

if( ! wp_verify_nonce( $nonce , 'update-site_icon-' . $step ) && $step > 1 ) {
	
	echo esc_html__( 'You are not suppoed to be here!', 'jetpack' );
	return;
}
switch( $step ){
	case '1':
		Jetpack_Site_Icon::select_page();
	break;

	case '2':
		Jetpack_Site_Icon::crop_page();
	break;

	case '3':
		Jetpack_Site_Icon::all_done_page();
	break;
}