Skip to content

Non-owners can reload services

Moderate
greeeen-dev published GHSA-j6wr-hfg4-fqcj Jun 15, 2024

Package

No package listed

Affected versions

1.2.4-patch~1.2.5-patch, v2.0.0~v2.0.1

Patched versions

1.2.5-patch2, v2.0.2

Description

Impact

A missing permissions check allows any user to run u!reload_services without privileges. This is an owner-only command which reloads all Unifier plugin scripts with either content_protection or content_processing services declared in their plugin metadata file (plugin.json). Although access to the bot as the owner or the host server is required to load a modified version of the scripts into the bot, continued reloads may lead to memory leaks (the magnitude depends on the memory Plugins use), which may cause the bot to shut down unintentionally due to excessive memory usage.

Patches

Patched in v1.2.5-patch2 and v2.0.2.

Workarounds

Effects of exploit can be prevented by uninstalling all plugins with either service. This will not prevent users from running the command, however no scripts will be reloaded, thus preventing memory leaks. Do note that Plugins without any services declared are never reloaded using this command.

References

7c0d7e7

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L

CVE ID

No known CVE

Weaknesses

No CWEs