CVE-2024-56517 LGSL has a reflected XSS at /lgsl_files/lgsl_list.php

Medium 5.3 Published Updated

Attackers can inject arbitrary JavaScript via the Referer header in LGSL, leading to reflected XSS and potential code execution in victim browsers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-56517?

CVE-2024-56517 is a medium-severity cross-site scripting vulnerability in tltneon lgsl, published on 30 Dec 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-79

Which versions are affected by CVE-2024-56517?

2 open source packages ship an affected version, including tltneon/lgsl.

PackageAffectedFixed in
tltneon/lgsl PackagistAll versions to 6.2.1None
tltneon/lgsl PackagistAll versions to 6.2.1None

How do I fix CVE-2024-56517?

No fix has been published for CVE-2024-56517 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2024-56517 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-56517 exists.

Sources

Also known as GHSA-ggwq-xc72-33r3.

Is CVE-2024-56517 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free