phpLDAPadmin: Reflected Cross-Site Scripting in entry_chooser.php
Published Dec 19, 2024
2.1
LOWCVSS 4.0
EPSS 0.50%
Description
A reflected cross-site scripting (XSS) vulnerability in the 'Entry Chooser' of phpLDAPadmin (version 1.2.1 through the latest version, 1.2.6.7) allows attackers to execute arbitrary JavaScript in the user's browser via the 'element' parameter, which is unsafely passed to the JavaScript 'eval' function. However, exploitation is limited to specific conditions where 'opener' is correctly set.
Affected products
-
Affected
- 1.2.1
- 1.2.6.7
Default status is the baseline for the product. Each version can override it (patched versions can be marked unaffected).
| Vendor | Product | Default status | Versions |
|---|---|---|---|
| phpLDAPadmin | phpLDAPadmin | affected | Affected
|
No data.
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
Vendor solution
It is recommended to avoid using the eval() function, especially in combination with user-supplied input. Instead of using eval(), it is advised to access the DOM element directly in a safe manner.
References (5)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-50428 Advisory
- https://github.com/leenooks/phpLDAPadmin/blob/master/htdocs/entry_chooser.php
- https://github.com/leenooks/phpLDAPadmin/commit/f713afc8d164169516c91b0988531f2accb9bce6#diff-c2d6d7678ada004e704ee055169395a58227aaec86a6f75fa74ca18ff49bca44R27
- https://sourceforge.net/projects/phpldapadmin/files/phpldapadmin-php5/1.2.1/
- https://www.redguard.ch/blog/2024/12/19/security-advisory-phpldapadmin/ third-party-advisory
Change history (0)
No recorded changes yet.
CVE.org / MITRE
CISA Vulnrichment
Red Hat
No data
GitHub
No data