mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Merge pull request #60884 from XananasX7/security/taskprocessing-unserialize-allowed-classes
fix(TaskProcessing): restrict allowed_classes in Manager cache deserialization
This commit is contained in:
commit
232fb616ea
1 changed files with 7 additions and 1 deletions
|
|
@ -938,7 +938,13 @@ class Manager implements IManager {
|
|||
if ($this->availableTaskTypes === null) {
|
||||
$cachedValue = $this->distributedCache->get($cacheKey);
|
||||
if ($cachedValue !== null) {
|
||||
$this->availableTaskTypes = unserialize($cachedValue);
|
||||
$this->availableTaskTypes = unserialize($cachedValue, [
|
||||
'allowed_classes' => [
|
||||
ShapeDescriptor::class,
|
||||
ShapeEnumValue::class,
|
||||
EShapeType::class,
|
||||
],
|
||||
]);
|
||||
}
|
||||
}
|
||||
// Either we have no cache or showDisabled is turned on, which we don't want to cache, ever.
|
||||
|
|
|
|||
Loading…
Reference in a new issue