Skip to content

Plugins can be installed with minimal admin privileges

High
rhukster published GHSA-wg37-cf5x-55hq Apr 13, 2021

Package

getgrav/grav (GitHub)

Affected versions

<= 1.10.10

Patched versions

1.10.11

Description

Impact

Plugins-related task handlers does not correctly verify caller's privileges. As a consequence, users with the permission admin.login can install third-party plugins and their dependencies. By installing the right plugin, an attacker can obtain an arbitrary code execution primitive and elevate their privileges on the instance.

Patches

The vulnerability has been addresses by improving the authorization checks on task handlers.

Workarounds

Blocking access to the /admin path from untrusted sources will reduce the probability of exploitation.

References

For more information

If you have any questions or comments about this advisory, you can contact:

  • The original reporters, by sending an email to vulnerability.research [at] sonarsource.com;
  • The maintainers, by opening an issue on this repository.

Severity

High

CVE ID

CVE-2021-29439

Weaknesses