5.3medium
Stored Cross-Site Scripting (XSS) in lgsl v7.0
- Severity
- 5.3medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.60% (higher than 49% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-xx95-62h6-h7v3
Description
LGSL (Live Game Server List) provides online status for games. Before 7.0.0, a stored cross-site scripting (XSS) vulnerability was identified in lgsl. The function lgsl_query_40 in lgsl_protocol.php has implemented an HTTP crawler. This function makes a request to the registered game server, and upon crawling the malicious /info endpoint with our payload, will render our javascript on the info page. This information is being displayed via lgsl_details.php. This vulnerability is fixed in 7.0.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| tltneon lgsl | < 7.0.0 | CVE List |
| tltneon/lgsl (Packagist) | before 7.0.0 | GitHub Advisory Database |
All scores
| GitHub_M | 5.3medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| GitHub | high rating |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
LGSL (Live Game Server List) provides online status for games. Before 7.0.0, a stored cross-site scripting (XSS) vulnerability was identified in lgsl. The function lgsl_query_40 in lgsl_protocol.php has implemented an HTTP crawler. This function makes a request to the registered game server, and upon crawling the malicious /info endpoint with our payload, will render our javascript on the info page. This information is being displayed via lgsl_details.php. This vulnerability is fixed in 7.0.0.
GitHub Advisory Database
Summary
A stored cross-site scripting (XSS) vulnerability was identified in lgsl. The issue arises from improper sanitation of user input. Everyone who accesses this page will be affected by this attack.
Details
The function lgsl_query_40 in lgsl_protocol.php has implemented an HTTP crawler. This function makes a request to the registered game server, and upon crawling the malicious /info endpoint with our payload, will render our javascript on the info page. This information is being displayed via lgsl_details.php
Affected Code:
foreach ($server['e'] as $field => $value) {
$value = preg_replace('/((https*:\/\/|https*:\/\/www\.|www\.)[\w\d\.\-\/=$?]*)/i', "<a href='$1' target='_blank'>$1</a>", html_entity_decode($value));
$output .= "
<tr><td> {$field} </td><td> {$value} </td></tr>";
}
PoC
-
Create a game server with type
ecoand set the target host and port accordingly to your ttack server. I have crafted this json payload that is being parsed according to the schema and being served on/info -
Serve the following JSON payload at
/infoon your handler
{
"Animals": "1",
"EconomyDesc": "<img src=x onerror=prompt(1)>"
}
- Access the corresponding server info page at
/s?=. Upon refreshing & crawling our server, it should execute our javascript.
NVD (es)
LGSL (Live Game Server List) proporciona el estado en línea de los juegos. Antes de la versión 7.0.0, se identificó una vulnerabilidad de cross-site scripting (XSS) almacenado en lgsl. La función lgsl_query_40 en lgsl_protocol.php ha implementado un rastreador HTTP. Esta función realiza una solicitud al servidor de juegos registrado y, al rastrear el endpoint malicioso /info con nuestro payload, mostrará nuestro javascript en la página de información. Esta información se muestra a través de lgsl_details.php. Esta vulnerabilidad se solucionó en la versión 7.0.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-56361 changed 2024-12-27 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xx95-62h6-h7v3 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-56361 changed 2026-06-17 | Public domain |