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
    • 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-14522

CVE-2025-14522: Baowzh Hfly RCE Vulnerability

CVE-2025-14522 is a remote code execution flaw in Baowzh Hfly caused by unrestricted file upload in upload_json.php. Attackers can exploit this remotely to execute malicious code. This article covers technical details, impact, and mitigation.

Published: April 1, 2026

CVE-2025-14522 Overview

A vulnerability has been identified in baowzh hfly, a PHP-based travel website CMS, that allows unrestricted file upload through the KindEditor component. The vulnerability exists in the file /Public/Kindeditor/php/upload_json.php, where improper validation of the imgFile argument enables attackers to upload arbitrary files to the server. This can be exploited remotely by authenticated users, potentially leading to cross-site scripting (XSS) attacks or arbitrary code execution on the target system.

Critical Impact

Remote attackers can upload malicious files including PHP scripts or HTML files containing XSS payloads, potentially compromising the web server and affecting users who access the uploaded content.

Affected Products

  • baowzh hfly (up to commit 638ff9abe9078bc977c132b37acbe1900b63491c)
  • PHP-based travel website CMS with KindEditor integration

Discovery Timeline

  • 2025-12-11 - CVE-2025-14522 published to NVD
  • 2026-01-09 - Last updated in NVD database

Technical Details for CVE-2025-14522

Vulnerability Analysis

This vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type, CWE-284: Improper Access Control) affects the file upload functionality within the KindEditor rich text editor component integrated into hfly CMS. The upload_json.php script fails to properly validate or restrict the types of files that can be uploaded via the imgFile parameter.

The vulnerability is accessible over the network and requires low-level authentication to exploit. An attacker can manipulate the imgFile argument to bypass intended file type restrictions, allowing the upload of potentially dangerous files such as PHP scripts, HTML files with embedded JavaScript, or other executable content. The exploit has been made publicly available, increasing the risk of widespread exploitation.

The vendor (baowzh) was contacted regarding this disclosure but did not respond. Additionally, hfly uses a rolling release model, meaning no specific version numbers are available for tracking affected or patched releases.

Root Cause

The root cause of this vulnerability lies in insufficient input validation and file type verification within the upload_json.php script. The KindEditor PHP upload handler does not properly sanitize or validate the uploaded file's content type, extension, or contents before storing it on the server. This allows attackers to bypass client-side restrictions and upload arbitrary file types that should be restricted.

Attack Vector

The attack is executed remotely over the network against the vulnerable file upload endpoint. An authenticated attacker sends a crafted HTTP POST request to /Public/Kindeditor/php/upload_json.php with a malicious file in the imgFile parameter. The file is accepted and stored on the server without proper validation, allowing the attacker to subsequently access the uploaded file to trigger XSS or execute malicious code.

The vulnerability mechanism involves sending a specially crafted multipart form-data request containing a malicious file disguised or submitted through the imgFile parameter. Since the upload handler lacks proper file type verification, files such as PHP shells, HTML files with JavaScript payloads, or other dangerous content can be stored on the server. For detailed technical analysis, refer to the GitHub XSS File Upload PoC and VulDB entry #335860.

Detection Methods for CVE-2025-14522

Indicators of Compromise

  • Unexpected files appearing in upload directories, particularly .php, .html, .htm, or other executable file types
  • HTTP POST requests to /Public/Kindeditor/php/upload_json.php with unusual file extensions or content types
  • Web server logs showing access to newly uploaded files with script or executable extensions
  • Suspicious file names or patterns in the KindEditor upload directory

Detection Strategies

  • Monitor web server access logs for POST requests to /Public/Kindeditor/php/upload_json.php followed by GET requests to unusual file paths
  • Implement file integrity monitoring on upload directories to detect unauthorized file additions
  • Use web application firewall (WAF) rules to block requests containing potentially dangerous file extensions in upload parameters
  • Deploy endpoint detection solutions like SentinelOne to identify malicious file creation and execution attempts

Monitoring Recommendations

  • Configure alerts for new file creation events in KindEditor upload directories
  • Implement real-time log analysis to detect patterns consistent with file upload exploitation attempts
  • Review authentication logs for accounts making unusual numbers of upload requests
  • Monitor for execution of uploaded scripts or access to files with non-image extensions in image upload directories

How to Mitigate CVE-2025-14522

Immediate Actions Required

  • Restrict or disable access to /Public/Kindeditor/php/upload_json.php if file upload functionality is not required
  • Implement server-side file type validation using allowlists for permitted file extensions and MIME types
  • Configure web server to deny execution of uploaded files in upload directories
  • Review and remove any suspicious files from the KindEditor upload directory

Patch Information

As of the last update, no official patch has been released by baowzh. The vendor was contacted regarding this vulnerability but did not respond. Since hfly uses a rolling release model, users should monitor the project repository for any security updates. In the absence of an official fix, implementing the workarounds below is critical.

Workarounds

  • Configure .htaccess or web server configuration to disable PHP execution in the KindEditor upload directory
  • Implement strict file type validation at the application level, checking both extension and MIME type
  • Store uploaded files outside the web root and serve them through a secure handler that validates content type
  • Consider replacing KindEditor with a more secure rich text editor component
bash
# Apache configuration to prevent PHP execution in upload directory
# Add to .htaccess in /Public/Kindeditor/php/ or equivalent directory
<Directory "/path/to/webroot/Public/Kindeditor/uploads">
    # Disable PHP execution
    php_flag engine off
    
    # Deny access to potentially dangerous files
    <FilesMatch "\.(php|php5|phtml|cgi|pl|py|html|htm|js)$">
        Require all denied
    </FilesMatch>
</Directory>

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechBaowzh Hfly

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-284

  • CWE-434
  • Technical References
  • GitHub XSS File Upload PoC

  • VulDB CTI #335860

  • VulDB #335860

  • VulDB Submit #702950
  • Related CVEs
  • CVE-2025-14520: Baowzh Hfly Path Traversal Vulnerability
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