CVE-2024-52947
Medium · 5.4CVSS
5.4
EPSS
0.3%
Published
Nov 18, 2024
CISA due date
—
Cloudanix analysis
A flaw in an identity management tool's session upgrade feature could let attackers trick logged-in users into running harmful code inside their browsers.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Data Tampering
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Allows injection of arbitrary web script or HTML through the url parameter on the upgradeSession/forceUpgrade confirmation page when the Upgrade session plugin is enabled.
Why it matters to the business
Attackers could hijack user sessions, steal credentials, or perform actions on behalf of authenticated users, potentially leading to unauthorized access across protected applications and increased support costs.
How an attack unfolds
An attacker crafts a malicious link containing a script payload in the url parameter of the upgrade session page, then tricks an authenticated user into visiting it; if the plugin is active, the script executes in the victim's browser context.
How to fix it
Upgrade LemonLDAP::NG to the commit fe2718cc2dd849966f690fb995d96f9ea391fa3f or later; disable the Upgrade session plugin if immediate upgrade is not feasible.
How to confirm the fix worked
Verify the deployed version includes commit fe2718cc2dd849966f690fb995d96f9ea391fa3f; test the upgradeSession endpoint with a benign payload to confirm the parameter is properly sanitized.
Typical attack path
- Identify a target deployment with the Upgrade session plugin enabled
- Craft a URL containing a malicious payload in the url parameter targeting the upgradeSession or forceUpgrade endpoint
- Deliver the link via phishing or another social engineering channel
- Victim authenticates and triggers the page, executing the injected script
How to detect it
Inspect web server and application logs for requests to upgradeSession or forceUpgrade endpoints containing suspicious url parameters with script tags, javascript: schemes, or encoded payloads; correlate with user sessions that exhibit unexpected behavior after visiting the page.
What your security team should do
- Apply the fix commit fe2718cc2dd849966f690fb995d96f9ea391fa3f immediately
- Audit configurations to identify any instances where the Upgrade session plugin is enabled
- Review web application firewall rules to block common XSS patterns on session-related endpoints
- Monitor for unusual script execution or unexpected redirects in application logs
The record
A cross-site scripting (XSS) vulnerability in LemonLDAP::NG before 2.20.1 allows remote attackers to inject arbitrary web script or HTML via the url parameter of the upgrade session confirmation page (upgradeSession / forceUpgrade) if the "Upgrade session" plugin has been enabled by an admin
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | lemonldap-ng | 0 | No fix |
| Debian:11 | lemonldap-ng | 0 | 2.0.11+ds-4+deb11u6 |
| Debian:12 | lemonldap-ng | 0 | No fix |
| Debian:13 | lemonldap-ng | 0 | 2.20.1+ds-1 |
| Debian:14 | lemonldap-ng | 0 | 2.20.1+ds-1 |
| Ubuntu:16.04:LTS | lemonldap-ng | 0 | No fix |
| Ubuntu:18.04:LTS | lemonldap-ng | 0 | No fix |
| Ubuntu:20.04:LTS | lemonldap-ng | 0 | No fix |
| Ubuntu:22.04:LTS | lemonldap-ng | 0 | No fix |
| Ubuntu:24.04:LTS | lemonldap-ng | 0 | No fix |
| Ubuntu:24.10 | lemonldap-ng | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | lemonldap-ng | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | lemonldap-ng | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | lemonldap-ng | 0 | No fix |
Related vulnerabilities
- CVE-2024-52946 An issue was discovered in LemonLDAP::NG before 2.20.1. Also affects lemonldap-ng
- CVE-2024-48933 A cross-site scripting (XSS) vulnerability in LemonLDAP::NG before 2.19.3 allows remote… Also affects lemonldap-ng
- CVE-2024-45160 Incorrect credential validation in LemonLDAP::NG 2.18.x and 2.19.x before 2.19.2 allows… Also affects lemonldap-ng
- CVE-2026-96379 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96382 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96368 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96361 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79
- CVE-2026-96362 Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting")… CWE-79