CVE-2025-60445 in XunRuiCMSinfo

Summary

by MITRE • 10/03/2025

A stored Cross-Site Scripting (XSS) vulnerability has been discovered in XunRuiCMS version 4.7.1. The vulnerability exists due to insufficient validation of SVG file uploads in the dayrui/Fcms/Library/Upload.php component, allowing attackers to inject malicious JavaScript code that executes when the uploaded file is viewed.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 10/03/2025

The stored cross-site scripting vulnerability in XunRuiCMS version 4.7.1 represents a critical security flaw that enables attackers to persist malicious code within the application's file upload system. This vulnerability specifically affects the dayrui/Fcms/Library/Upload.php component where SVG file uploads are processed without adequate input validation. The flaw allows unauthorized users to upload malicious SVG files containing embedded JavaScript code that executes when the file is viewed by other users, creating a persistent threat vector within the application's ecosystem. The vulnerability stems from inadequate sanitization of file content during the upload process, particularly for SVG format files which can contain executable script elements.

The technical implementation of this vulnerability exploits the lack of proper content validation in the upload handling mechanism. When users upload SVG files through the designated upload interface, the system fails to thoroughly inspect the file content for potentially dangerous script tags or embedded javascript code. SVG files are particularly dangerous in this context because they are XML-based and can contain script elements that execute when rendered in web browsers. The vulnerability creates a stored XSS condition where malicious payloads are permanently stored on the server and executed whenever legitimate users access the uploaded files through the application's interface. This type of vulnerability falls under CWE-79 which specifically addresses cross-site scripting flaws, and represents a direct violation of secure input validation principles.

The operational impact of this vulnerability extends beyond simple code execution, creating significant risks for application users and administrators. Attackers can leverage this flaw to steal session cookies, perform unauthorized actions on behalf of users, redirect victims to malicious websites, or even establish persistent backdoors within the application environment. The stored nature of the vulnerability means that once a malicious file is uploaded, it remains active indefinitely until manually removed, providing attackers with sustained access to the compromised system. This vulnerability directly impacts the integrity and confidentiality of user data, potentially leading to complete system compromise and unauthorized access to sensitive information. The threat landscape for this vulnerability aligns with ATT&CK technique T1566 which covers phishing with malicious attachments, and T1059 which involves command and scripting interpreter usage.

Mitigation strategies for this vulnerability require immediate implementation of comprehensive file validation measures within the upload component. Organizations should implement strict content type validation and sanitization for all uploaded files, particularly SVG files, by removing or encoding any executable script elements before storage. The recommended approach includes implementing a whitelist-based file validation system that only accepts known safe file formats and content types. Additionally, implementing proper output encoding when displaying uploaded files can prevent script execution even if malicious content manages to bypass initial validation. Regular security updates and patches should be applied immediately upon availability, and the application should be configured to use secure file handling practices that align with OWASP secure coding guidelines. Network monitoring should be enhanced to detect unusual file upload patterns that may indicate exploitation attempts, and access controls should be strengthened to limit upload capabilities to authorized users only. The vulnerability also necessitates regular security audits of file upload components to ensure that similar flaws do not exist in other parts of the application.

Responsible

MITRE

Reservation

09/26/2025

Disclosure

10/03/2025

Moderation

accepted

CPE

ready

EPSS

0.00208

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!