Getgrav grav-plugin-api
Grav API Plugin : API Key 'scopes' Never Enforced - Delegated Least-Privilege Keys Carry Full User ACL
Grav API Plugin is a RESTful API for Grav CMS that provides full headless access to your site's content. Prior to 1.0.6, the Grav API plugin ApiKeyManager::generateKey() stores a declared scopes array, but ApiKeyAuthenticator::authenticate() does not read keyData[scopes] and returns the owning user's complete identity. AbstractApiController::requirePermission() consequently evaluates the full user ACL, so a key issued for a read-only scope can perform every write, delete, and administrative operation available to the owner. This issue is fixed in version 1.0.6.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.0.6
Fixed in 1.0.6
Mitigation
Upgrade grav-plugin-api to 1.0.6 or later.
References
- Vendor advisory github.com/getgrav/grav/security/advisories/GH…
- Patch github.com/getgrav/grav-plugin-api/commit/dfcc…
- Release notes github.com/getgrav/grav-plugin-api/releases/ta…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.