vendor:
PHP Directory Listing
by:
Not disclosed
7.5
CVSS
HIGH
Cross-Site Scripting (XSS)
79
CWE
Product Name: PHP Directory Listing
Affected Version From: PHP Directory Listing script 3.1
Affected Version To: Potentially affects prior versions
Patch Exists: NO
Related CWE: Not provided
CPE: a:php_directory_listing_project:php_directory_listing:3.1
Platforms Tested:
Unknown
PHP Directory Listing Cross-Site Scripting Vulnerability
The PHP Directory Listing script is prone to a cross-site scripting vulnerability. This vulnerability occurs because the script fails to sufficiently sanitize user-supplied data. An attacker can exploit this vulnerability to execute arbitrary script code in the browser of an unsuspecting user, within the context of the affected site. By doing so, the attacker may be able to steal cookie-based authentication credentials and launch further attacks.
Mitigation:
To mitigate this vulnerability, it is recommended to sanitize and validate user-supplied input to ensure that it does not contain malicious code or scripts. Additionally, implementing a strict content security policy (CSP) can help prevent XSS attacks.