CVE-2023-46745: Librenms/librenms LibreNMS Vulnerable To Rate Limiting Vulnerability

MODERATE
Advisory Identifier: GHSA-rq42-58qf-v3qx
CVSS 5.3
CWE-307 CWE-770
Published
Advisory Summary

CVE-2023-46745 is a MODERATE (CVSS 5.3) librenms vulnerable to rate limiting vulnerability (CWE-307: Improper Restriction of Excessive Authentication Attempts) affecting Librenms/librenms libraries in the Packagist ecosystem. The issue involves librenms vulnerable to rate limiting bypass on login page. Remediation is available by upgrading affected packages to version 23.11.0.

CVE-2023-46745 at a Glance

CVE Identifier CVE-2023-46745
GHSA Identifier GHSA-rq42-58qf-v3qx
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-307: Improper Restriction of Excessive Authentication Attempts
Affected Product Librenms/librenms
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2023-46745

To remediate this vulnerability, upgrade all affected Librenms/librenms dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

librenms/librenms fixed: 23.11.0
Upgrade librenms/librenms to 23.11.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for librenms/librenms

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-46745, inspect your project dependencies for Librenms/librenms:

inspect dependencies for librenms/librenms

Analyze the terminal output to locate any version of Librenms/librenms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 23.11.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-307: Improper Restriction of Excessive Authentication Attempts, where the product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame. In Librenms/librenms, 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

### Summary Application is using two login methods and one of them is using GET request for authentication. There is no rate limiting security feature at GET request or backend is not validating that. ### PoC Go to /?username=admin&password=password&submit= Capture request in Burpsuite intruder and add payload marker at password parameter value. Start the attack after adding your password list We have added 74 passwords Check screenshot for more info <img width="1241" alt="Screenshot 2023-11-06 at 8 55 19 PM" src="https://user-images.githubusercontent.com/31764504/280905148-42274f1e-f869-4145-95b4-71c0bffde3a0.png"> ### Impact An attacker can Bruteforce user accounts and using GET request for authentication is not recommended because certain web servers logs all requests in old logs which can also store victim user credentials.

CVE-2023-46745 Affected Librenms/librenms Versions

1 component(s)
Fixed Versions:
23.11.0
Product / Package Ecosystem Affected Versions Fixed Version
librenms/librenms
Packagist
< 23.11.0
23.11.0

References

Frequently Asked Questions

What is CVE-2023-46745?
CVE-2023-46745 is a security vulnerability in Librenms/librenms involving LibreNMS vulnerable to rate limiting bypass on login page under CWE-307: Improper Restriction of Excessive Authentication Attempts.
Which Librenms/librenms versions are affected?
Affected versions include releases prior to 23.11.0 across affected packages: librenms/librenms.
What version fixes CVE-2023-46745?
Upgrading to 23.11.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is librenms/librenms affected?
Yes, librenms/librenms is affected in releases prior to 23.11.0. Upgrade your dependency to 23.11.0 or later.
What is the CVSS score of CVE-2023-46745?
CVE-2023-46745 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2023-46745?
CVE-2023-46745 is classified under CWE-307: Improper Restriction of Excessive Authentication Attempts (The product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame.).
How can I check Packagist dependencies for CVE-2023-46745?
Run the dependency tree command: 'inspect dependencies for librenms/librenms'. 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-rq42-58qf-v3qx",
  "modified" : "2023-11-20T22:06:37Z",
  "published" : "2023-11-17T21:38:42Z",
  "aliases" : [ "CVE-2023-46745" ],
  "summary" : "LibreNMS vulnerable to rate limiting bypass on login page",
  "details" : "### Summary\nApplication is using two login methods and one of them is using GET request for authentication. There is no rate limiting security feature at GET request or backend is not validating that. \n\n### PoC\nGo to /?username=admin&password=password&submit=\nCapture request in Burpsuite intruder and add payload marker at password parameter value.\nStart the attack after adding your password list\nWe have added 74 passwords\nCheck screenshot for more info\n<img width=\"1241\" alt=\"Screenshot 2023-11-06 at 8 55 19 PM\" src=\"https://user-images.githubusercontent.com/31764504/280905148-42274f1e-f869-4145-95b4-71c0bffde3a0.png\">\n\n### Impact\nAn attacker can Bruteforce user accounts and using GET request for authentication is not recommended because certain web servers logs all requests in old logs which can also store victim user credentials.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "librenms/librenms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "23.11.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/librenms/librenms/security/advisories/GHSA-rq42-58qf-v3qx"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-46745"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/librenms/librenms/pull/15558"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/librenms/librenms/commit/7c006e96251ae1d32e1a015b361a7bfbb815c028"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/librenms/librenms"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/librenms/librenms/releases/tag/23.11.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-307", "CWE-770" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-11-17T21:38:42Z",
    "nvd_published_at" : "2023-11-17T22:15:07Z"
  }
}