A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-52790

CVE-2025-52790: WP-DownloadCounter CSRF Vulnerability

CVE-2025-52790 is a Cross-Site Request Forgery flaw in WP-DownloadCounter plugin that enables stored XSS attacks. This article covers the technical details, affected versions up to 1.01, impact, and mitigation.

Published: April 29, 2026

CVE-2025-52790 Overview

CVE-2025-52790 is a Cross-Site Request Forgery (CSRF) vulnerability affecting the WP-DownloadCounter WordPress plugin developed by r-win. This security flaw enables attackers to chain CSRF with Stored Cross-Site Scripting (XSS), allowing malicious actors to inject persistent scripts into vulnerable WordPress installations. The vulnerability requires user interaction, where an authenticated administrator must be tricked into clicking a malicious link while logged into their WordPress dashboard.

Critical Impact

Attackers can leverage this CSRF-to-Stored-XSS vulnerability chain to execute arbitrary JavaScript code in the context of other users' browsers, potentially leading to session hijacking, privilege escalation, or complete site compromise.

Affected Products

  • WP-DownloadCounter WordPress plugin version 1.01 and earlier
  • All WordPress installations running vulnerable versions of wp-downloadcounter

Discovery Timeline

  • 2025-06-20 - CVE-2025-52790 published to NVD
  • 2026-04-23 - Last updated in NVD database

Technical Details for CVE-2025-52790

Vulnerability Analysis

This vulnerability combines two distinct attack vectors: Cross-Site Request Forgery (CWE-352) and Stored Cross-Site Scripting. The WP-DownloadCounter plugin fails to implement proper CSRF token validation on critical administrative actions, enabling attackers to forge requests on behalf of authenticated users. When combined with the lack of output sanitization, attackers can persist malicious JavaScript payloads within the WordPress database.

The attack requires social engineering to trick an administrator into visiting a malicious page or clicking a crafted link while authenticated to the WordPress dashboard. Once the forged request is processed, the XSS payload becomes stored and executes whenever users access affected pages.

Root Cause

The root cause of this vulnerability stems from two fundamental security failures in the WP-DownloadCounter plugin: the absence of CSRF nonce verification in state-changing operations and inadequate input sanitization and output encoding when handling user-supplied data. WordPress provides built-in functions like wp_nonce_field() and wp_verify_nonce() for CSRF protection, and esc_html() or esc_attr() for output encoding, but the plugin fails to implement these security controls properly.

Attack Vector

The attack is network-based and requires user interaction. An attacker crafts a malicious HTML page containing a hidden form that submits data to the vulnerable plugin endpoint. When an authenticated WordPress administrator visits this page, the form auto-submits using JavaScript, sending a forged request that injects a malicious XSS payload into the plugin's stored data. Since the plugin does not verify CSRF tokens or sanitize input, the payload persists and executes when any user views the affected content.

The attacker typically hosts the malicious page on an external domain and distributes the link through phishing emails, social media, or compromised websites to lure administrators into triggering the attack.

Detection Methods for CVE-2025-52790

Indicators of Compromise

  • Unexpected JavaScript code present in WP-DownloadCounter plugin configuration or counter data
  • Suspicious HTTP POST requests to plugin endpoints from external referrers
  • User reports of unusual browser behavior when viewing pages with download counters
  • Audit logs showing configuration changes without corresponding administrator actions

Detection Strategies

  • Monitor WordPress audit logs for unauthorized modifications to WP-DownloadCounter settings
  • Implement Content Security Policy (CSP) headers to detect and block unauthorized script execution
  • Review database entries associated with the plugin for embedded JavaScript or HTML tags
  • Deploy web application firewall (WAF) rules to detect CSRF attack patterns targeting WordPress plugins

Monitoring Recommendations

  • Enable WordPress security logging plugins to capture all administrative actions
  • Configure alerts for changes to plugin settings from unexpected IP addresses or referrers
  • Regularly scan database tables for suspicious content patterns indicative of stored XSS
  • Monitor for outbound connections to unknown domains triggered by admin page visits

How to Mitigate CVE-2025-52790

Immediate Actions Required

  • Disable or deactivate the WP-DownloadCounter plugin until a patched version becomes available
  • Review plugin database tables for any existing malicious JavaScript payloads and remove them
  • Audit administrator sessions and force password resets if compromise is suspected
  • Implement a Web Application Firewall (WAF) to filter malicious requests targeting this vulnerability

Patch Information

As of the latest available information, versions through 1.01 remain vulnerable. No official patch has been documented in the CVE data. Administrators should monitor the Patchstack Vulnerability Report for updates and patch availability. Consider replacing the plugin with an actively maintained alternative that implements proper CSRF protection and input sanitization.

Workarounds

  • Remove the WP-DownloadCounter plugin entirely and migrate to a more secure download tracking solution
  • If the plugin must remain active, restrict administrative access to trusted IP addresses only
  • Implement additional security layers using WordPress security plugins that provide CSRF protection
  • Train administrators to avoid clicking links from untrusted sources while logged into WordPress
  • Apply strict Content Security Policy headers to minimize the impact of any stored XSS execution

Administrators should consider the following WordPress security hardening configuration to reduce CSRF and XSS attack surface:

bash
# Add to .htaccess or server configuration
# Restrict WordPress admin access by IP
<Files wp-admin>
    Order Deny,Allow
    Deny from all
    Allow from 192.168.1.0/24
</Files>

# Add security headers via wp-config.php
# define('FORCE_SSL_ADMIN', true);

# Consider adding CSP headers in your theme's functions.php
# header("Content-Security-Policy: script-src 'self'; object-src 'none';");

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeCSRF

  • Vendor/TechWp Downloadcounter

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityLow
  • CWE References
  • CWE-352
  • Technical References
  • Patchstack Vulnerability Report
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English