{"id":"CVE-2024-56517","aliases":["CVE-2024-56517","GHSA-ggwq-xc72-33r3"],"related":[],"kind":"vulnerability","state":"published","title":"LGSL has a reflected XSS at /lgsl_files/lgsl_list.php","summary":"LGSL (Live Game Server List) provides online status lists for online video games. Versions up to and including 6.2.1 contain a reflected cross-site scripting vulnerability in the `Referer` HTTP header. The vulnerability allows attackers to inject arbitrary JavaScript code, which is reflected in the HTML response without proper sanitization. When crafted malicious input is provided in the `Referer` header, it is echoed back into an HTML attribute in the application’s response. Commit 7ecb839df9358d21f64cdbff5b2536af25a77de1 contains a patch for the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"LGSL (Live Game Server List) provides online status lists for online video games. Versions up to and including 6.2.1 contain a reflected cross-site scripting vulnerability in the `Referer` HTTP header. The vulnerability allows attackers to inject arbitrary JavaScript code, which is reflected in the HTML response without proper sanitization. When crafted malicious input is provided in the `Referer` header, it is echoed back into an HTML attribute in the application’s response. Commit 7ecb839df9358d21f64cdbff5b2536af25a77de1 contains a patch for the issue.","source":"cvelist"},{"lang":"en","text":"# Reflected XSS at /lgsl_files/lgsl_list.php\n\n\n**Description:**\n\nVulnerability: A reflected XSS vulnerability exists in the `Referer` HTTP header of [LGSL v6.2.1](https://github.com/tltneon/lgsl/releases/tag/v6.2.1). The vulnerability allows attackers to inject arbitrary JavaScript code, which is reflected in the HTML response without proper sanitization.\nWhen crafted malicious input is provided in the `Referer` header, it is echoed back into an HTML attribute in the application’s response.\n\n\nThe vulnerability is present at [Line 20-24](https://github.com/tltneon/lgsl/blob/master/lgsl_files/lgsl_list.php#L20-L24)\n```php\n  $uri = $_SERVER['REQUEST_URI'];\n\n  if ($lgsl_config['preloader']) {\n    $uri = $_SERVER['HTTP_REFERER'];\n  }\n```\n\n**Proof of Concept:**\n1. Capture a request to the path `/lgsl_files/lgsl_list.php`.\n2. Inject the following payload into the Referer header: `test'><script>alert(1)</script><`.\n3. Send the request.\n4. The XSS payload is triggered when reloading.\n![image](https://github.com/user-attachments/assets/467a6c60-db45-4520-9918-59dff819b384)\n![image](https://github.com/user-attachments/assets/c537c59e-38c2-47f0-97d8-54ee1b2018b8)\n\n\n\n**Impact:**\n\nExecution of Malicious Code","format":"markdown","source":"ghsa"},{"lang":"es","text":"LGSL (Live Game Server List) proporciona listas de estado en línea para videojuegos en línea. Las versiones hasta la 6.2.1 incluida contienen una vulnerabilidad de cross-site scripting reflejado en el encabezado HTTP `Referer`. La vulnerabilidad permite a los atacantes inyectar código JavaScript arbitrario, que se refleja en la respuesta HTML sin la desinfección adecuada. Cuando se proporciona una entrada maliciosa manipulada en el encabezado `Referer`, se refleja en un atributo HTML en la respuesta de la aplicación. El commit 7ecb839df9358d21f64cdbff5b2536af25a77de1 contiene un parche para el problema.","source":"nvd"}],"published":"2024-12-30T16:36:08.785Z","modified":"2026-06-17T08:12:17.050Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/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:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"<= 6.2.1","status":"affected"}],"vendor":"tltneon","product":"lgsl","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"6.2.1"}],"ecosystem":"Packagist","package":"tltneon/lgsl","purl":"pkg:composer/tltneon/lgsl","source":"ghsa"}],"references":[{"url":"https://github.com/tltneon/lgsl/security/advisories/GHSA-ggwq-xc72-33r3","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tltneon/lgsl/commit/7ecb839df9358d21f64cdbff5b2536af25a77de1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tltneon/lgsl/blob/master/lgsl_files/lgsl_list.php#L20-L24","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56517","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/tltneon/lgsl","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-12-30T17:22:30.126Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-56517","url":"https://www.cve.org/CVERecord?id=CVE-2024-56517","licence":"CVE Terms of Use","modified":"2024-12-30T17:22:50.748Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ggwq-xc72-33r3","url":"https://github.com/advisories/GHSA-ggwq-xc72-33r3","licence":"CC-BY-4.0","modified":"2024-12-30T18:53:37.039Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-56517","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56517","licence":"Public domain","modified":"2026-06-17T08:12:17.050Z"}],"updatedAt":"2026-11-25T22:58:50.582Z","epss":{"score":0.00648,"percentile":0.5238,"date":"2026-12-01T12:00:22.000Z"}}