NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

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

mediumCVSS 4.0 5.3GHSA-ggwq-xc72-33r3

Reflected XSS at /lgslfiles/lgsllist.php Description: Vulnerability: A reflected XSS vulnerability exists in the Referer HTTP header of LGSL v6.2.1. The vulnerability allows attackers to inject arbitrary JavaScript code, which is reflected in the HTML response without proper sanitization.

Published Dec 30, 2024

Affected packages

tltneon/lgsl

Ecosystem
Composer (PHP)
Affected
<= 6.2.1
Fixed in
No patched version yet
Check
composer show tltneon/lgsl

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Reflected XSS at /lgsl_files/lgsl_list.php

Description:

Vulnerability: A reflected XSS vulnerability exists in the Referer HTTP header of LGSL v6.2.1. 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.

The vulnerability is present at Line 20-24

  $uri = $_SERVER['REQUEST_URI'];

  if ($lgsl_config['preloader']) {
    $uri = $_SERVER['HTTP_REFERER'];
  }

Proof of Concept:

  1. Capture a request to the path /lgsl_files/lgsl_list.php.
  2. Inject the following payload into the Referer header: test'><script>alert(1)</script><.
  3. Send the request.
  4. The XSS payload is triggered when reloading.

image image

Impact:

Execution of Malicious Code

Credited to tCu0n9.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries