☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Themehunk logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N 🐛 CWE-862
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2022-38057

CVE-2022-38057 Missing Authorization in Themehunk
📅 PUBLISHED: 2024-03-25 11:36 UTC 🔄 UPDATED: 2026-08-12 14:52 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.11%
👁️
0.11% probability
2.7× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
License: Freemium
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.5
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: N User Interaction None
S: U Scope Unchanged
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
6.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2022-38057 is a Missing Authorization vulnerability in the ThemeHunk Advance WordPress Search Plugin (versions up to and including 1.2.1). This flaw allows unauthenticated attackers to bypass authorization checks and potentially access or modify sensitive data within the WordPress installation. The vulnerability is classified as a WordPress ecosystem issue, specifically affecting the plugin's AJAX handlers and REST endpoints that fail to properly verify user capabilities. With a CVSS score of 6.5 (Medium), the risk is elevated due to the lack of required privileges and the potential for data exposure or manipulation. No public proof-of-concept (PoC) or exploit code has been released, and the vendor has not provided a patch, leaving all installations of the plugin vulnerable.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability affects a WordPress plugin distributed through the official WordPress plugin repository. Since the plugin is not an NPM, PyPI, Go, or Ruby package, supply chain risks are limited to the plugin's update mechanism and the integrity of the WordPress plugin directory. Users should verify the plugin's source and consider removing it if no patch is available.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – Exploitable remotely.
  • Attack Complexity (AC): Low (L) – No special conditions required.
  • Privileges Required (PR): None (N) – No authentication needed.
  • User Interaction (UI): None (N) – No user action required.
  • Scope (S): Unchanged (U) – Impact confined to the vulnerable component.
  • Confidentiality (C): Low (L) – Limited data exposure.
  • Integrity (I): Low (L) – Limited data modification.
  • Availability (A): None (N) – No impact on availability.

Threat Level: Medium. The vulnerability is easy to exploit but has limited impact on confidentiality and integrity.

Deep Dive & Mechanics

The ThemeHunk Advance WordPress Search Plugin provides enhanced search functionality for WordPress sites. The vulnerability resides in the plugin's AJAX handlers and REST API endpoints that are intended for administrative or privileged users. Due to missing authorization checks (CWE-862), these endpoints can be invoked by any unauthenticated visitor.

Root Cause: The plugin registers AJAX actions (e.g., wp_ajax_advance_search_save_settings, wp_ajax_nopriv_advance_search_save_settings) without verifying the user's capabilities. The nopriv variant is particularly dangerous as it allows unauthenticated access. Similarly, REST API routes may lack permission callbacks.

Attack Vector: An attacker can craft HTTP requests to these endpoints, bypassing authentication. For example, sending a POST request to /wp-admin/admin-ajax.php with the action parameter set to an unprotected function can trigger unauthorized operations.

Impact: Successful exploitation could allow an attacker to:

  • Modify plugin settings (e.g., search parameters, display options).
  • Access search logs or cached data.
  • Potentially escalate privileges if combined with other vulnerabilities.

Vulnerable vs. Patched Code

Since no patch is available, the vulnerable code remains in all versions up to 1.2.1. The following example illustrates the missing authorization:

Vulnerable Code (PHP):

add_action('wp_ajax_advance_search_save_settings', 'advance_search_save_settings');
add_action('wp_ajax_nopriv_advance_search_save_settings', 'advance_search_save_settings');

function advance_search_save_settings() {
    // No capability check
    update_option('advance_search_settings', $_POST['settings']);
    wp_die();
}

Patched Code (Hypothetical):

add_action('wp_ajax_advance_search_save_settings', 'advance_search_save_settings');
// Remove the nopriv action to require authentication

function advance_search_save_settings() {
    if (!current_user_can('manage_options')) {
        wp_die('Unauthorized', 403);
    }
    update_option('advance_search_settings', $_POST['settings']);
    wp_die();
}

Exploitation & Lab Setup

Red Team

Prerequisites:

  • A WordPress site with the vulnerable plugin installed (version <= 1.2.1).
  • Network access to the target.

Exploitation Steps:

  1. Identify the vulnerable endpoint by scanning for AJAX actions.
  2. Craft a request to modify plugin settings:
    curl -X POST http://target/wp-admin/admin-ajax.php \
         -d "action=advance_search_save_settings&settings[search_engine]=google"
    
  3. Verify the change by checking the plugin's behavior or database.

Note: No public exploit code is available; this is a conceptual demonstration.

Blue Team

Detection:

  • Monitor for unusual AJAX requests to admin-ajax.php with actions related to the plugin.
  • Look for requests from unauthenticated users to wp_ajax_nopriv_* actions.
  • Check for unauthorized changes to plugin options in the database.

Hunting:

  • Search logs for patterns like action=advance_search_* from non-admin IPs.
  • Use the Sigma rule below to detect exploitation attempts.

Indicators of Compromise (IOCs)

  • Network:
    • HTTP POST requests to /wp-admin/admin-ajax.php with action=advance_search_* parameters.
    • Unusual wp_ajax_nopriv_* action calls from unauthenticated sources.
  • File System:
    • Modified plugin files in /wp-content/plugins/advance-wordpress-search/.
  • Database:
    • Unexpected values in the wp_options table under advance_search_settings.

Detection Engineering

YARA Rule

rule CVE_2022_38057_WordPress_Plugin
{
    meta:
        description = "Detects vulnerable ThemeHunk Advance WordPress Search Plugin files"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2022-38057"
    strings:
        $vuln_func = "wp_ajax_nopriv_advance_search" nocase
        $vuln_action = "advance_search_save_settings" nocase
    condition:
        $vuln_func or $vuln_action
}

Sigma Rule

title: CVE-2022-38057 - Missing Authorization in ThemeHunk Advance WordPress Search
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects exploitation attempts against CVE-2022-38057
author: Valters IT
date: 2025/04/10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: 'admin-ajax.php'
        cs-uri-query|contains: 'action=advance_search_'
    condition: selection
falsepositives:
    - Legitimate admin actions (rare)
level: medium

Suricata Rule

alert http any any -> any any (msg:"CVE-2022-38057 - ThemeHunk Advance WordPress Search Exploit"; flow:to_server,established; content:"POST"; http_method; content:"admin-ajax.php"; http_uri; content:"action=advance_search_"; http_client_body; classtype:attempted-admin; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin if not essential: Deactivate and delete the advance-wordpress-search plugin from the WordPress admin panel.
  2. Implement a Web Application Firewall (WAF) rule to block requests to admin-ajax.php with action=advance_search_* from unauthenticated users.
  3. Monitor logs for exploitation attempts using the provided detection rules.

Long-Term Fix:

  • Since no patch is available, consider replacing the plugin with an alternative that is actively maintained.
  • If the plugin is critical, manually patch the code by adding capability checks (as shown in the patched code example) and removing nopriv actions.

Valters IT – Securing your digital frontier.

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"Advance WordPress Search"
http.html:"wp-content/plugins/advance-wordpress-search"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2022-38057/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.