[CVE-2019-12617] Fix access escalation for CMS users with limited access through permission cache pollution

This commit is contained in:
Serge Latyntcev 2019-09-24 11:14:14 +12:00 committed by Aaron Carlino
parent 569237c0f4
commit 5af205993d

View File

@ -737,6 +737,7 @@ class InheritedPermissions implements PermissionChecker, MemberCacheFlusher
*/ */
protected function generateCacheKey($type, $memberID) protected function generateCacheKey($type, $memberID)
{ {
return "{$type}-{$memberID}"; $classKey = str_replace('\\', '-', $this->baseClass);
return "{$type}-{$classKey}-{$memberID}";
} }
} }