Skip to main content
Vulnerability Database/CVE-2024-53255

CVE-2024-53255: BoidCMS Reflected XSS Vulnerability

CVE-2024-53255 is a reflected cross-site scripting flaw in BoidCMS admin panel that enables attackers to inject malicious JavaScript code. This article covers technical details, affected versions, and mitigation steps.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-53255 Overview

CVE-2024-53255 is a reflected Cross-Site Scripting (XSS) vulnerability in BoidCMS, a free and open-source flat file CMS built in PHP that uses JSON as a database. The flaw exists in the /admin?page=media endpoint, where the file parameter is reflected into the response without proper sanitization. An attacker can craft a malicious URL that executes arbitrary JavaScript in the context of an authenticated administrator session. Successful exploitation enables session cookie theft, phishing, and site defacement. The issue is tracked under [CWE-79] and is addressed in BoidCMS version 2.1.2.

Critical Impact

Attackers can hijack administrator sessions and execute arbitrary JavaScript in the browser of any admin lured into clicking a crafted link.

Affected Products

  • BoidCMS versions prior to 2.1.2
  • Component: boidcms:boidcms
  • Vulnerable endpoint: /admin?page=media (file parameter)

Discovery Timeline

  • 2024-11-25 - CVE-2024-53255 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-53255

Vulnerability Analysis

The vulnerability is a reflected XSS flaw in the BoidCMS administrative interface. When a user requests /admin?page=media with a file query parameter, the application echoes the parameter value back into the rendered HTML without output encoding. An attacker who crafts a URL containing JavaScript payloads can cause that script to execute in the browser of any administrator who follows the link. Because the vulnerable endpoint resides within the authenticated admin area, successful exploitation leverages a logged-in session to perform actions on behalf of the administrator.

Root Cause

The root cause is improper neutralization of input during web page generation [CWE-79]. The file parameter supplied to the media management page is incorporated into the HTML response without context-appropriate HTML entity encoding or input validation. Any character sequence resembling HTML or JavaScript is interpreted by the browser as code rather than data.

Attack Vector

Exploitation requires user interaction. An attacker crafts a malicious link to the vulnerable endpoint with a JavaScript payload in the file parameter and delivers it to an authenticated BoidCMS administrator through phishing, social media, or an external site. When the administrator clicks the link, the browser executes the script in the origin of the BoidCMS instance. The script can read the session cookie, submit forged administrative requests, exfiltrate data, or modify page content to deface the site.

The upstream fix was shipped as a version bump from 2.1.1 to 2.1.2 in the project source tree, along with sanitization changes referenced in the maintainer commit.

php
// Version metadata change in app/app.php reflecting the security release
  * @package BoidCMS
  * @author Shuaib Yusuf Shuaib
  * @link https://boidcms.github.io
- * @version 2.1.1
+ * @version 2.1.2
  * @licence MIT
  */
 #[AllowDynamicProperties]

Source: BoidCMS commit 42f4d70

Detection Methods for CVE-2024-53255

Indicators of Compromise

  • Web server access logs containing requests to /admin?page=media with suspicious characters in the file parameter, such as <script, onerror=, javascript:, or URL-encoded equivalents like %3Cscript.
  • Outbound HTTP requests from administrator browsers to unfamiliar domains immediately after visiting /admin?page=media.
  • Unexpected changes to BoidCMS pages, media files, or admin account settings without a corresponding legitimate admin login.

Detection Strategies

  • Deploy web application firewall (WAF) rules that inspect query parameters on /admin?page=media for XSS payload patterns and block or alert on matches.
  • Correlate HTTP referer headers with external domains that lead administrators into the /admin?page=media endpoint carrying encoded script content.
  • Review BoidCMS installations for versions earlier than 2.1.2 using software inventory data and flag them for remediation.

Monitoring Recommendations

  • Enable verbose access logging for the /admin path and forward logs to a centralized SIEM for query-parameter analysis.
  • Monitor browser Content Security Policy (CSP) violation reports to surface injection attempts against the admin interface.
  • Alert on administrator session anomalies such as new IP addresses, user-agent changes, or impossible-travel patterns following suspicious URL visits.

How to Mitigate CVE-2024-53255

Immediate Actions Required

  • Upgrade BoidCMS to version 2.1.2 or later on all affected instances without delay.
  • Invalidate active administrator sessions and rotate admin credentials after patching to neutralize any session tokens that may have been captured.
  • Restrict administrative access to trusted source IP addresses using network or reverse-proxy controls until the upgrade is complete.

Patch Information

The maintainers released BoidCMS 2.1.2, which addresses the reflected XSS in the /admin?page=media endpoint. The fix is distributed through the official repository and referenced in GitHub Security Advisory GHSA-7q7m-cgw8-px4r and the corresponding BoidCMS commit 42f4d70.

Workarounds

  • The vendor states that no known workarounds exist; upgrading to 2.1.2 is the only supported remediation.
  • As a temporary compensating control, deploy a WAF rule that blocks requests to /admin?page=media containing script-like characters in the file parameter.
  • Enforce a strict Content Security Policy on the BoidCMS admin interface to limit the impact of injected scripts.
bash
# Example nginx compensating control: block script-like payloads on the vulnerable endpoint
location /admin {
    if ($arg_page = "media") {
        if ($args ~* "file=.*(<|%3C|script|onerror|javascript:)") {
            return 403;
        }
    }
}

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.