{"id":"CVE-2024-56361","aliases":["CVE-2024-56361","GHSA-xx95-62h6-h7v3"],"related":[],"kind":"vulnerability","state":"published","title":"Stored Cross-Site Scripting (XSS) in lgsl v7.0","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nA 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.\n\n### Details\n\nThe 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`\n\n#### Affected Code:\n```php\n      foreach ($server['e'] as $field => $value) {\n        $value = preg_replace('/((https*:\\/\\/|https*:\\/\\/www\\.|www\\.)[\\w\\d\\.\\-\\/=$?​]*)/i', \"<a href='$1' target='_blank'>$1</a>\", html_entity_decode($value));\n        $output .= \"\n        <tr><td> {$field} </td><td> {$value} </td></tr>\";\n      }\n```\n### PoC\n\n1. Create a game server with type `eco` and 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` \n\n2. Serve the following JSON payload at `/info` on your handler\n```json\n{\n  \"Animals\": \"1\",\n  \"EconomyDesc\": \"<img src=x onerror=prompt(1)>\"\n}\n```\n3. Access the corresponding server info page at `/s?=`. Upon refreshing & crawling our server, it should execute our javascript.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-12-26T20:20:12.000Z","modified":"2026-09-10T03:50:21.743Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 7.0.0","status":"affected"}],"vendor":"tltneon","product":"lgsl","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.0.0"}],"ecosystem":"Packagist","package":"tltneon/lgsl","purl":"pkg:composer/tltneon/lgsl","source":"ghsa"}],"references":[{"url":"https://github.com/tltneon/lgsl/security/advisories/GHSA-xx95-62h6-h7v3","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tltneon/lgsl/commit/3fbd3bb581b636f7fd3ea0592c5f8df87d3a2843","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tltneon/lgsl","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-12-27T16:16:50.899Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-56361","url":"https://www.cve.org/CVERecord?id=CVE-2024-56361","licence":"CVE Terms of Use","modified":"2024-12-27T16:17:04.400Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xx95-62h6-h7v3","url":"https://github.com/advisories/GHSA-xx95-62h6-h7v3","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:21.743Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-56361","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56361","licence":"Public domain","modified":"2026-06-17T08:12:06.680Z"}],"updatedAt":"2026-11-25T22:58:50.383Z","epss":{"score":0.00596,"percentile":0.49873,"date":"2026-12-01T12:00:22.000Z"}}