CVE-2020-24660: Lemonldap ng handler Lack Of URL Normalization May Vulnerability
MODERATECVE-2020-24660 is a MODERATE (CVSS 6.5) lack of url normalization may vulnerability (CWE-287: Improper Authentication) affecting Lemonldap ng handler libraries in the npm ecosystem. The issue involves lack of url normalization may lead to authorization bypass when url access rules are used. Remediation is available by upgrading affected packages to version 0.5.2.
CVE-2020-24660 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2020-24660
To remediate this vulnerability, upgrade all affected Lemonldap ng handler dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install lemonldap-ng-handler@0.5.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls lemonldap-ng-handler
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2020-24660, inspect your project dependencies using npm:
npm ls lemonldap-ng-handler
Analyze the terminal output to locate any version of Lemonldap ng handler in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.2), your application is affected.
Note: The npm ls lemonldap-ng-handler command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Lemonldap ng handler, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-24660 Affected Lemonldap ng handler Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
lemonldap-ng-handler
|
npm |
< 0.5.2
|
0.5.2
|
References
Frequently Asked Questions
What is CVE-2020-24660?
Which Lemonldap ng handler versions are affected?
What version fixes CVE-2020-24660?
Is lemonldap-ng-handler affected?
What is the CVSS score of CVE-2020-24660?
What CWE is associated with CVE-2020-24660?
How can I check npm dependencies for CVE-2020-24660?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x44x-r84w-8v67",
"modified" : "2021-10-04T21:15:52Z",
"published" : "2020-09-09T18:45:55Z",
"aliases" : [ "CVE-2020-24660" ],
"summary" : "Lack of URL normalization may lead to authorization bypass when URL access rules are used",
"details" : "### Impact\nWhen access rules are used inside a protected host, some URL encodings may bypass filtering system.\n\n### Patches\nVersion 0.5.2 includes a patch that fixes the vulnerability\n\n### Workarounds\nNo way for users to fix or remediate the vulnerability without upgrading\n\n### References\nhttps://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2290\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [this repository](https://github.com/LemonLDAPNG/node-lemonldap-ng-handler/issues) or [LemonLDAP::NG GitLab](https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues)\n* Email us at [lemonldap-ng-users@ow2.org](mailto:lemonldap-ng-users@ow2.org)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "lemonldap-ng-handler"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/LemonLDAPNG/node-lemonldap-ng-handler/security/advisories/GHSA-x44x-r84w-8v67"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-24660"
}, {
"type" : "WEB",
"url" : "https://github.com/LemonLDAPNG/node-lemonldap-ng-handler/commit/136aa83ed431462fa42ce17b7f9b24e056de06be"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/LemonLDAPNG/node-lemonldap-ng-handler"
}, {
"type" : "WEB",
"url" : "https://github.com/LemonLDAPNG/node-lemonldap-ng-handler/releases/tag/0.5.2"
}, {
"type" : "WEB",
"url" : "https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2290"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-NODELEMONLDAPNGHANDLER-655999"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2020/dsa-4762"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/package/lemonldap-ng-handler"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-09-09T18:42:35Z",
"nvd_published_at" : null
}
}