CVE-2026-40457
Received Received - Intake
Reflected XSS in LMS Before Commit 9c5651b

Publication date: 2026-06-18

Last updated on: 2026-06-18

Assigner: CERT.PL

Description
A Reflected Cross-Site Scripting (XSS) vulnerability exists in LMS (LAN Management System) before commit 9c5651b in the "dbrecover.php" and "netremap.php" modules where unsanitized GET parameters are directly embedded into HTML output. This allows an attacker to inject arbitrary JavaScript when an authenticated user clicks a crafted link, provided the required conditions (such as a network defined in the system) are met.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-18
Last Modified
2026-06-18
Generated
2026-06-19
AI Q&A
2026-06-18
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
chilek lms 9c5651b
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Compliance Impact

The vulnerability is a reflected Cross-Site Scripting (XSS) issue that allows an attacker to inject arbitrary JavaScript when an authenticated user clicks a crafted link. Such vulnerabilities can lead to unauthorized actions or data exposure in the context of the affected application.

While the provided information does not explicitly mention compliance with standards like GDPR or HIPAA, XSS vulnerabilities generally pose risks to data confidentiality and integrity, which are critical aspects of these regulations.

Therefore, if exploited, this vulnerability could potentially lead to non-compliance with regulations that require protection of user data and secure application behavior, as it may enable attackers to execute malicious scripts within the context of authenticated users.

Executive Summary

This vulnerability is a Reflected Cross-Site Scripting (XSS) issue found in the LMS (LAN Management System) software before a specific commit. It occurs in the dbrecover.php and netremap.php modules where certain GET parameters are directly embedded into HTML output without proper sanitization. This allows an attacker to craft a malicious link containing arbitrary JavaScript code that executes when an authenticated user clicks on it, assuming certain conditions like a defined network in the system are met.

Impact Analysis

The impact of this vulnerability is that an attacker can execute arbitrary JavaScript code in the context of an authenticated user's browser session. This can lead to unauthorized actions such as stealing session cookies, performing actions on behalf of the user, or redirecting the user to malicious sites. The attack requires the user to click a specially crafted link, which can be embedded in emails or other communications.

Detection Guidance

This vulnerability can be detected by checking if the LMS application is vulnerable to reflected Cross-Site Scripting (XSS) in the dbrecover.php and netremap.php modules. Specifically, you can test if unsanitized GET parameters (such as 'db' in dbrecover.php and 'id' and 'mapto' in netremap.php) are reflected in the HTML output without proper escaping.

A practical way to detect this is to craft URLs with JavaScript payloads in these GET parameters and observe if the payload executes when an authenticated user clicks the link.

  • Example test URL for dbrecover.php: http://<lms-server>/dbrecover.php?db=<script>alert(1)</script>
  • Example test URL for netremap.php: http://<lms-server>/netremap.php?id=<script>alert(1)</script>&mapto=<script>alert(1)</script>

If the alert box appears or the script executes, the system is vulnerable.

Mitigation Strategies

The immediate mitigation step is to apply the security fix that escapes the GET parameters before embedding them into HTML output.

Specifically, ensure that the LMS software is updated to include the commit 9c5651b which applies htmlspecialchars() to the 'db' parameter in dbrecover.php and the 'id' and 'mapto' parameters in netremap.php.

This escaping prevents malicious JavaScript injection and thus mitigates the reflected XSS vulnerability.

Additionally, as a best practice, avoid clicking on untrusted links and consider implementing web application firewall (WAF) rules to detect and block XSS payloads targeting these endpoints.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-40457. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart