The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-23044

CVE-2025-23044: Pwndoc CSRF Vulnerability

CVE-2025-23044 is a CSRF flaw in Pwndoc that allows attackers to send unauthorized requests on behalf of logged-in users. This article covers the technical details, affected versions, security impact, and mitigation.

Published: April 29, 2026

CVE-2025-23044 Overview

CVE-2025-23044 is a Cross-Site Request Forgery (CSRF) vulnerability affecting PwnDoc, a popular penetration test report generator used by security professionals. The vulnerability exists due to the absence of CSRF protection mechanisms in the application, specifically the missing SameSite attribute on authentication cookies. This allows attackers to craft malicious requests that execute actions on behalf of authenticated users without their knowledge or consent.

Critical Impact

Attackers can execute unauthorized GET and POST requests on behalf of authenticated PwnDoc users, potentially leading to data exfiltration, unauthorized modifications to penetration test reports, and compromise of sensitive security documentation.

Affected Products

  • PwnDoc (all versions prior to commit 14acb704891245bf1703ce6296d62112e85aa995)
  • pwndoc_project pwndoc

Discovery Timeline

  • 2025-01-20 - CVE-2025-23044 published to NVD
  • 2025-05-07 - Last updated in NVD database

Technical Details for CVE-2025-23044

Vulnerability Analysis

This CSRF vulnerability stems from a fundamental security misconfiguration in how PwnDoc handles authentication cookies. The application sets token and refreshToken cookies without the SameSite attribute, which is essential for preventing cross-origin request attacks in modern web applications. Without this protection, browsers will automatically include these authentication cookies when making requests to PwnDoc from any origin, including malicious third-party websites.

The vulnerability is particularly concerning because it affects both GET and POST requests, meaning attackers can potentially read sensitive data and modify application state. Additionally, the ability to refresh cookies extends the attack window, allowing persistent exploitation even after initial tokens would normally expire.

Root Cause

The root cause lies in the cookie configuration within the backend/src/routes/user.js file. When setting authentication cookies (token and refreshToken), the application only specifies secure: true and httpOnly: true attributes but omits the critical sameSite attribute. The SameSite cookie attribute controls whether cookies are sent with cross-site requests, and its absence defaults to SameSite=Lax in modern browsers, which still allows some cross-site request scenarios to succeed with cookie inclusion.

Attack Vector

The attack can be executed remotely over the network and requires user interaction. An attacker would need to trick an authenticated PwnDoc user into visiting a malicious webpage or clicking a crafted link. The malicious page would contain hidden forms or JavaScript that automatically submit requests to the PwnDoc application. Since the victim's browser automatically includes authentication cookies with these requests, the PwnDoc server processes them as legitimate authenticated requests.

Attack scenarios include:

  • Creating or modifying penetration test reports
  • Exporting sensitive vulnerability data
  • Changing user account settings
  • Adding malicious content to existing reports

The following patch shows how the vulnerability was addressed by adding sameSite: 'strict' to both authentication cookies:

javascript
         
         User.updateRefreshToken(token, userAgent)
         .then(msg => {
-            res.cookie('token', `JWT ${msg.token}`, {secure: true, httpOnly: true})
-            res.cookie('refreshToken', msg.refreshToken, {secure: true, httpOnly: true, path: '/api/users/refreshtoken'})
+            res.cookie('token', `JWT ${msg.token}`, {sameSite: 'strict', secure: true, httpOnly: true})
+            res.cookie('refreshToken', msg.refreshToken, {sameSite: 'strict', secure: true, httpOnly: true, path: '/api/users/refreshtoken'})
             Response.Ok(res, msg)
         })
         .catch(err => {

Source: GitHub Commit Changes

Detection Methods for CVE-2025-23044

Indicators of Compromise

  • Unexpected modifications to penetration test reports or templates
  • User account changes that the legitimate user did not initiate
  • Audit logs showing API requests from unusual referrer origins
  • Session activity from geographic locations inconsistent with normal user behavior

Detection Strategies

  • Monitor HTTP request headers for cross-origin requests to sensitive PwnDoc endpoints, particularly checking Origin and Referer headers for suspicious external domains
  • Implement web application firewall (WAF) rules to detect and block requests with suspicious referrer patterns
  • Review server access logs for patterns of authenticated requests originating from external referrer URLs
  • Configure SIEM alerts for bulk or automated API interactions that deviate from normal user behavior patterns

Monitoring Recommendations

  • Enable detailed logging for all state-changing API endpoints in PwnDoc
  • Set up alerts for authentication cookie usage from non-standard origins
  • Monitor for rapid sequential requests that could indicate automated CSRF exploitation
  • Track changes to sensitive resources like reports and user accounts with before/after comparisons

How to Mitigate CVE-2025-23044

Immediate Actions Required

  • Update PwnDoc to include commit 14acb704891245bf1703ce6296d62112e85aa995 or later
  • Review audit logs for any unauthorized changes made prior to patching
  • Invalidate all active sessions to force re-authentication with properly configured cookies
  • Inform users about the vulnerability and advise them to review their recent activity

Patch Information

The vulnerability has been patched in commit 14acb704891245bf1703ce6296d62112e85aa995. The fix adds the sameSite: 'strict' attribute to both the token and refreshToken cookies, preventing browsers from sending these cookies with cross-site requests. For detailed patch information, refer to the GitHub Commit Changes and the GitHub Security Advisory GHSA-9v2v-jxvw-52rq.

Workarounds

  • Deploy a reverse proxy or WAF that validates Origin and Referer headers on all state-changing requests
  • Restrict network access to PwnDoc to trusted internal networks only until the patch can be applied
  • Implement additional CSRF tokens at the application or proxy layer as a defense-in-depth measure
  • Educate users to avoid clicking links or visiting untrusted websites while logged into PwnDoc
bash
# Example nginx configuration to add basic CSRF protection at the proxy level
# Add to your PwnDoc nginx server block
location /api/ {
    # Block requests with external referrers to state-changing endpoints
    if ($http_referer !~* "^https://your-pwndoc-domain\.com") {
        return 403;
    }
    proxy_pass http://pwndoc-backend;
}

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

  • Vulnerability Details
  • TypeCSRF

  • Vendor/TechPwndoc

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.27%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-352
  • Vendor Resources
  • GitHub Commit Changes

  • GitHub Security Advisory GHSA-9v2v-jxvw-52rq
  • Latest CVEs
  • CVE-2026-44572: Vercel Next.js DoS Vulnerability

  • CVE-2026-42945: NGINX Buffer Overflow Vulnerability

  • CVE-2026-37430: qihang-wms File Upload RCE Vulnerability

  • CVE-2026-44005: Vm2 Sandbox RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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