CVE-2024-56517
PHP vulnerability analysis and mitigation

Overview

LGSL (Live Game Server List), a tool that provides online status lists for online video games, contains a reflected cross-site scripting vulnerability in versions up to and including 6.2.1. The vulnerability was discovered in the Referer HTTP header handling and was disclosed on December 30, 2024 (GitHub Advisory).

Technical details

The vulnerability exists in the /lgsl_files/lgsl_list.php file where the application processes the HTTP Referer header without proper sanitization. Specifically, between lines 20-24, the code assigns the unsanitized $_SERVER['HTTP_REFERER'] value to the $uri variable when the preloader configuration is enabled. When malicious input is provided in the Referer header, it is reflected back into an HTML attribute in the application's response, allowing for arbitrary JavaScript code execution (GitHub Code). The vulnerability has been assigned a CVSS v4.0 score of 5.3 (Medium) with the vector string 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 (NVD).

Impact

The vulnerability allows attackers to inject and execute arbitrary JavaScript code in the context of users' browsers who visit the affected pages. This could lead to session hijacking, credential theft, or other client-side attacks depending on the specific exploitation scenario (GitHub Advisory).

Mitigation and workarounds

A patch has been implemented in commit 7ecb839df9358d21f64cdbff5b2536af25a77de1, which adds proper sanitization using htmlspecialchars() with ENT_QUOTES and UTF-8 encoding for the Referer header value (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65854CRITICAL9.8
  • PHPPHP
  • mineadmin/mineadmin
NoNoDec 12, 2025
CVE-2024-58303HIGH8.6
  • PHPPHP
  • fof/pretty-mail
NoNoDec 11, 2025
CVE-2025-67719HIGH8.5
  • PHPPHP
  • ibexa/user
NoYesDec 11, 2025
CVE-2025-67648HIGH7.1
  • PHPPHP
  • shopware/shopware
NoYesDec 11, 2025
CVE-2025-67737LOW3.1
  • PHPPHP
  • azuracast/azuracast
NoYesDec 12, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management