CVE-2020-24660: Lemonldap ng handler Lack Of URL Normalization May Vulnerability

MODERATE
Advisory Identifier: GHSA-x44x-r84w-8v67
CVSS 6.5
CWE-287
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2020-24660
GHSA Identifier GHSA-x44x-r84w-8v67
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-287: Improper Authentication
Affected Product Lemonldap ng handler
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

lemonldap-ng-handler fixed: 0.5.2
npm install lemonldap-ng-handler@0.5.2
Verify Direct and Transitive Dependencies

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

### Impact When access rules are used inside a protected host, some URL encodings may bypass filtering system. ### Patches Version 0.5.2 includes a patch that fixes the vulnerability ### Workarounds No way for users to fix or remediate the vulnerability without upgrading ### References https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/issues/2290 ### For more information If you have any questions or comments about this advisory: * 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) * Email us at [lemonldap-ng-users@ow2.org](mailto:lemonldap-ng-users@ow2.org)

CVE-2020-24660 Affected Lemonldap ng handler Versions

1 component(s)
Fixed Versions:
0.5.2
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?
CVE-2020-24660 is a security vulnerability in Lemonldap ng handler involving Lack of URL normalization may lead to authorization bypass when URL access rules are used under CWE-287: Improper Authentication.
Which Lemonldap ng handler versions are affected?
Affected versions include releases prior to 0.5.2 across affected packages: lemonldap-ng-handler.
What version fixes CVE-2020-24660?
Upgrading to 0.5.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is lemonldap-ng-handler affected?
Yes, lemonldap-ng-handler is affected in releases prior to 0.5.2. Upgrade your dependency to 0.5.2 or later.
What is the CVSS score of CVE-2020-24660?
CVE-2020-24660 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2020-24660?
CVE-2020-24660 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check npm dependencies for CVE-2020-24660?
Run the dependency tree command: 'npm ls lemonldap-ng-handler'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}