CVE-2026-38931

simplephp Cross Site Scripting (XSS) Vulnerability

Overview

  • CVE ID: CVE-2026-38931
  • Vendor: creatorsofcode
  • Product: simplephp
  • Version: GitHub commit 5184cff (Latest as of 2026-02-27)
  • Vulnerability Type: Cross Site Scripting (XSS)
  • Affected Component: /admin/config-module.php

Description

simplephp's latest version (Development version at commit 5184cff) contain an Cross Site Scripting (XSS) vulnerability in the /admin/config-module.php component.

This vulnerability is caused by the lack of proper Cross Site Scripting (XSS) defenses in certain components. An attacker can construct a stored Cross Site Scripting (XSS) vulnerability by persistently storing malicious scripts on the server. When other users visit the affected pages, the malicious scripts execute automatically in their browsers.

This vulnerability may allow attackers to steal user cookies and sensitive information, or even hijack administrator accounts, posing a severe threat to application security and user privacy.

PoC

  1. Log in to the administrator backend.

  2. In the "Modules" section, add and activate the "Analytics Tracker" component.

  3. Then, navigate to the "Module Config" section and paste the following XSS payload into the "Custom Head Tracking Code" field and click "Save":

    <script>alert(666666)</script>
    
  4. Finally, visit the website homepage. The XSS vulnerability will be triggered, and an alert box displaying "666666" will pop up.

Details

First, I set up the relevant website locally for testing.

image-20260330214650849

Then, click "Go to Admin Panel".

image-20260330214902823

Next, I entered the administrator's username and password (default: admin/admin123 ) to log into the backend.

image-20260330215011392

Then, I attempted to inject XSS payloads into various input fields under Module Config, but they were ineffective. This indicates that the website has some XSS defense mechanisms in place, which also makes the subsequent exploitation more valuable.

image-20260330215642202

Under Modules, we can install some modules that are not installed by default, such as Analytics Tracker.

image-20260330215734497

Don’t forget to click "Activate".

image-20260330215922906

Then, we return to Module Config, where we can see the new module "Analytics Tracker" has appeared. We enter an XSS payload such as <script>alert(666666)</script> into the "Custom Head Tracking Code" field and click Save.

image-20260330220208041

After the page displays "Configuration saved successfully", we visit the website homepage and find that the XSS alert box appears, confirming the existence of a stored XSS vulnerability.

image-20260330220828922