GHSA-g49q-jw42-6x85: Thelounge Thelounge May Publicly Disclose Of Vulnerability

LOW
Published
Advisory Summary

GHSA-g49q-jw42-6x85 is a LOW thelounge may publicly disclose of vulnerability (General Security Weakness) affecting Thelounge libraries in the npm ecosystem. The issue involves thelounge may publicly disclose of all usernames/idents via port 113. Remediation is available in the latest vendor maintenance releases.

GHSA-g49q-jw42-6x85 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-g49q-jw42-6x85
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Thelounge
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-g49q-jw42-6x85

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

thelounge fixed: Latest secure release
npm install thelounge@Latest secure release
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 thelounge

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-g49q-jw42-6x85, inspect your project dependencies using npm:

npm ls thelounge

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

Note: The npm ls thelounge 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 General Security Weakness. In Thelounge, 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

Per RFC 1413, The unique identifying tuple includes not only the ports, but also the both addresses. Without the addresses, the information becomes both non-unique and public: - If multiple connections happen to use the same local port number (which is possible if the addresses differ), the username of the first is returned for all, resulting in the wrong ident for all but the first. - By not checking the connection address, the information becomes public. Because there is only a relatively small number of local ports, and the remote ports are likely to be either 6667 or 6697, it becomes trivial to scan the entire range to get a list of idents. To prevent this from happening, disable identd or upgrade to a non vulnerable version.

GHSA-g49q-jw42-6x85 Affected Thelounge Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
thelounge
npm
≤ 4.4.3

References

Frequently Asked Questions

What is GHSA-g49q-jw42-6x85?
GHSA-g49q-jw42-6x85 is a security vulnerability in Thelounge involving thelounge may publicly disclose of all usernames/idents via port 113 under General Security Weakness.
Which Thelounge versions are affected?
Affected versions include releases prior to current release patches across affected packages: thelounge.
What version fixes GHSA-g49q-jw42-6x85?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is thelounge affected?
Yes, thelounge is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-g49q-jw42-6x85?
GHSA-g49q-jw42-6x85 is classified under General Security Weakness.
How can I check npm dependencies for GHSA-g49q-jw42-6x85?
Run the dependency tree command: 'npm ls thelounge'. 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-g49q-jw42-6x85",
  "modified" : "2024-05-09T21:31:35Z",
  "published" : "2024-05-09T21:31:35Z",
  "aliases" : [ ],
  "summary" : "thelounge may publicly disclose of all usernames/idents via port 113",
  "details" : "Per RFC 1413, The unique identifying tuple includes not only the ports, but also the both addresses. Without the addresses, the information becomes both non-unique and public:\n- If multiple connections happen to use the same local port number (which is possible if the addresses differ), the username of the first is returned for all, resulting in the wrong ident for all but the first.\n- By not checking the connection address, the information becomes public. Because there is only a relatively small number of local ports, and the remote ports are likely to be either 6667 or 6697, it becomes trivial to scan the entire range to get a list of idents.\n\nTo prevent this from happening, disable identd or upgrade to a non vulnerable version.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "thelounge"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "4.4.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/thelounge/thelounge/security/advisories/GHSA-g49q-jw42-6x85"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/thelounge/thelounge/pull/4872"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/thelounge/thelounge"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-09T21:31:35Z",
    "nvd_published_at" : null
  }
}