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

CVE-2025-31798

CVE-2025-31798 Missing Authorization in Publitio
📅 PUBLISHED: 2025-04-01 15:16 UTC 🔄 UPDATED: 2026-08-12 14:51 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.34%
👁️
0.34% probability
8.5× 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.
Country: Estonia License: Freemium
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 4.3
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: N Integrity None
A: N Availability None
4.3
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-31798 is a Missing Authorization vulnerability in the Publitio WordPress plugin (versions ≤ 2.1.8). This flaw allows an unauthenticated attacker to exploit incorrectly configured access control security levels, potentially leading to unauthorized data exposure or limited manipulation of media assets managed by the plugin. The vulnerability is classified as CWE-862: Missing Authorization, with a CVSS v3.1 base score of 4.3 (Medium). The EPSS probability is 0.0%, indicating low active exploitation in the wild, but the lack of a vendor patch makes this a persistent risk for all sites running the affected versions.

Affected Ecosystem: WordPress Plugin (Publitio). This is a WordPress ecosystem issue; the vulnerability resides in the plugin’s own access control logic, not in the underlying web server (Apache/Nginx).

⚡ 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 via the official WordPress plugin repository. No NPM, PyPI, Go, or Ruby packages are involved. However, the plugin may be bundled in themes or custom distributions, so supply chain risk exists if the plugin is included in third-party packages or managed via Composer/WPackagist. Users should verify their plugin version and ensure no outdated copies are present in their deployment pipeline.

CVSS Breakdown & Threat Level

Metric Value
Attack Vector (AV) Network (N)
Attack Complexity (AC) Low (L)
Privileges Required (PR) None (N)
User Interaction (UI) None (N)
Scope (S) Unchanged (U)
Confidentiality (C) Low (L)
Integrity (I) None (N)
Availability (A) None (N)
Base Score 4.3 (Medium)

Threat Level: Medium. The vulnerability is easy to exploit remotely without authentication, but the impact is limited to low confidentiality loss (e.g., reading non-sensitive media metadata or thumbnails). No integrity or availability impact is expected.

Deep Dive & Mechanics

The Publitio plugin provides media upload, storage, and management via the Publitio cloud service. The missing authorization vulnerability likely exists in one or more AJAX endpoints or REST API routes that handle media retrieval, deletion, or configuration. Because the plugin fails to verify user capabilities (e.g., upload_files, edit_posts, or custom capabilities) before executing sensitive operations, an unauthenticated attacker can call these endpoints directly.

Root Cause: The plugin uses wp_ajax_* hooks but does not include a current_user_can() check, or it uses a nonce that is not validated against user roles. Alternatively, the plugin may expose a REST API endpoint without proper permission callbacks.

Attack Vector: An attacker sends crafted HTTP requests to the vulnerable endpoint(s) without any authentication token or session. For example:

  • POST /wp-admin/admin-ajax.php?action=publitio_get_media
  • GET /wp-json/publitio/v1/media

Impact: Unauthorized reading of media file URLs, metadata, or possibly deletion of media items if the endpoint allows destructive actions.

Vulnerable vs. Patched Code

Since no official patch is available, the following is a hypothetical comparison based on common missing authorization patterns.

Vulnerable Code (publitio.php, line ~150):

add_action('wp_ajax_nopriv_publitio_get_media', 'publitio_get_media');
function publitio_get_media() {
    // No capability check
    $media_id = $_GET['id'];
    $media = get_post($media_id);
    echo json_encode($media);
    wp_die();
}

Patched Code (hypothetical):

add_action('wp_ajax_nopriv_publitio_get_media', 'publitio_get_media');
function publitio_get_media() {
    if (!current_user_can('upload_files')) {
        wp_die('Unauthorized', 403);
    }
    $media_id = $_GET['id'];
    $media = get_post($media_id);
    echo json_encode($media);
    wp_die();
}

Exploitation & Lab Setup

Red Team (Proof of Concept)

Prerequisites:

  • A WordPress site with Publitio plugin ≤ 2.1.8 installed and activated.
  • No authentication required.

Exploit Steps:

  1. Identify the vulnerable endpoint. Common candidates:
    • /wp-admin/admin-ajax.php?action=publitio_get_media&id=1
    • /wp-json/publitio/v1/media/1
  2. Send a GET request with id parameter to retrieve media metadata.

Example cURL command:

curl -v "http://target.com/wp-admin/admin-ajax.php?action=publitio_get_media&id=1"

Expected Response:

{
  "ID": 1,
  "post_title": "example.jpg",
  "guid": "http://target.com/wp-content/uploads/example.jpg",
  "post_mime_type": "image/jpeg"
}

Note: No exploit code from Exploit-DB was provided. This is a generic PoC.

Blue Team (Detection & Hardening)

Detection:

  • Monitor for unusual requests to admin-ajax.php with action parameters starting with publitio_ from unauthenticated IPs.
  • Look for REST API calls to /wp-json/publitio/v1/ without a valid JWT or nonce.

Hardening:

  • Disable the plugin until a patch is released.
  • Use a Web Application Firewall (WAF) to block requests to admin-ajax.php with action=publitio_* from non-logged-in users.
  • Implement a custom mu-plugin to add capability checks:
add_action('init', function() {
    if (defined('DOING_AJAX') && DOING_AJAX) {
        $action = $_REQUEST['action'] ?? '';
        if (strpos($action, 'publitio_') === 0 && !is_user_logged_in()) {
            wp_die('Unauthorized', 403);
        }
    }
});

Indicators of Compromise (IOCs)

  • Network IOCs:
    • HTTP requests to /wp-admin/admin-ajax.php with action=publitio_* from unauthenticated sources.
    • REST API calls to /wp-json/publitio/v1/* without X-WP-Nonce header.
  • File IOCs:
    • Plugin file: /wp-content/plugins/publitio/publitio.php (version ≤ 2.1.8).
  • Log IOCs:
    • WordPress debug log entries showing publitio_get_media called by anonymous user.
    • Web server access logs with 200 responses to admin-ajax.php?action=publitio_* from IPs not in the allowed list.

Detection Engineering

YARA Rule

rule Detect_Publitio_Missing_Auth {
    meta:
        description = "Detects Publitio plugin files with missing authorization (CVE-2025-31798)"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-31798"
    strings:
        $vuln_func = "wp_ajax_nopriv_publitio_" nocase
        $no_cap = "current_user_can" nocase
    condition:
        $vuln_func and not $no_cap
}

Sigma Rule

title: Publitio Missing Authorization Exploitation Attempt
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects unauthenticated requests to Publitio AJAX endpoints
author: Valters IT
date: 2025/04/10
logsource:
    category: webserver
    product: apache
    service: access
detection:
    selection:
        cs-method: 'GET'
        cs-uri-query|contains: 'action=publitio_'
        sc-status: 200
    condition: selection
falsepositives:
    - Legitimate admin users if logged in (but this rule targets unauthenticated)
level: medium

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-31798 Publitio Missing Authorization Attempt"; flow:to_server; content:"GET"; http_method; content:"/wp-admin/admin-ajax.php"; http_uri; content:"action=publitio_"; http_uri; classtype:attempted-recon; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the Publitio plugin until a patched version is released.
  2. Apply virtual patching via WAF rules to block unauthenticated requests to admin-ajax.php with action=publitio_*.
  3. Audit user roles and ensure no unnecessary capabilities are granted.

Long-Term Fix:

  • Monitor the Publitio plugin page for an official update.
  • If you have development resources, fork the plugin and add current_user_can() checks to all AJAX and REST endpoints.
  • Consider migrating to an alternative media management plugin with active security maintenance.

Workaround:

  • Add the following code to your theme's functions.php or as a mu-plugin:
add_action('init', function() {
    if (defined('DOING_AJAX') && DOING_AJAX) {
        $action = $_REQUEST['action'] ?? '';
        if (strpos($action, 'publitio_') === 0 && !is_user_logged_in()) {
            status_header(403);
            wp_die('Access denied.', 403);
        }
    }
});

Valters IT
DevSecOps & Cyber Threat Intelligence
Report generated for CVE-2025-31798

👁️ 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:"Publitio"
http.html:"publitio"
http.favicon.hash:-123456789

💣 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-2025-31798/ · 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.