nextcloud/lib/private/Repair
Eli Peter c919537629 fix(repair): restrict unserialize() in RemoveBrokenProperties
RemoveBrokenProperties::run() calls unserialize() on the property value column without restricting allowed_classes. The result is only compared against false to identify broken rows, so no class instantiation is needed. As written though, magic methods (__wakeup/__destruct) on any class referenced by the serialized payload still execute.

The runtime decoder for the same column already restricts deserialization. See apps/dav/lib/DAV/CustomPropertiesBackend.php:675-678, which passes ['allowed_classes' => self::ALLOWED_SERIALIZED_CLASSES]. This change applies the same hardening to the repair step. It uses ['allowed_classes' => false] since the unserialized value is never used, only its truthiness is checked.

No behavior change for valid or broken rows.  

Signed-off-by: Eli Peter <54954007+elicpeter@users.noreply.github.com>
2026-06-16 13:12:55 +02:00
..
Events refactor: Run rector on lib/private 2026-02-06 13:50:18 +01:00
NC13 chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
NC14 chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
NC16 chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
NC18 chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
NC20 chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
NC21 chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
NC22 chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
NC24 chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
NC25 chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
NC29 chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
NC30 chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
Owncloud chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
AddBruteForceCleanupJob.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
AddCleanupBackgroundJobsJob.php feat(utils): add getter for serverid with proper default 2026-06-12 19:40:16 +02:00
AddCleanupDeletedUsersBackgroundJob.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
AddCleanupUpdaterBackupsJob.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
AddMetadataGenerationJob.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
AddMovePreviewJob.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
AddRemoveOldTasksBackgroundJob.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
CleanTags.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
CleanUpAbandonedApps.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
ClearFrontendCaches.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
ClearGeneratedAvatarCache.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
ClearGeneratedAvatarCacheJob.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
Collation.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
ConfigKeyMigration.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
MoveUpdaterStepFile.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
OldGroupMembershipShares.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
RemoveBrokenProperties.php fix(repair): restrict unserialize() in RemoveBrokenProperties 2026-06-16 13:12:55 +02:00
RemoveLinkShares.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
RepairDavShares.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
RepairInvalidShares.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
RepairLogoDimension.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00
RepairMimeTypes.php chore: add missing Override attribute to OC 2026-04-28 21:29:27 +02:00