[BUGFIX] Allow arbitrary objects in widget context
TYPO3-CORE-SA-2020-005 caused side-effects on Fluid AJAX widgets which unfortunatelly support any class instance to be temporarily stored in the current user-session. With mentioned change to address an insecure deserialization vulnerability it was limited to items that could be JSON-serialized. This limitation is removed again by switching back to `unserialize()`, but using an encryption-key-based HMAC signature on the payload. Due to its architecture there is no better approach available. This partially reverts commit e4fb92a8. Resolves: #91382 Releases: master, 9.5 Change-Id: I68cbd15e7df2f536180f174fa63cf27f8a19cfcd Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64501 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Jonas Götze <jonnsn@gmail.com> Tested-by:
Alexander Schnitzler <git@alexanderschnitzler.de> Tested-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Tested-by:
Susanne Moog <look@susi.dev> Reviewed-by:
Alexander Schnitzler <git@alexanderschnitzler.de> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by:
Susanne Moog <look@susi.dev>
Showing
- typo3/sysext/fluid/Classes/Core/Widget/AjaxWidgetContextHolder.php 30 additions, 20 deletions...ext/fluid/Classes/Core/Widget/AjaxWidgetContextHolder.php
- typo3/sysext/fluid/Classes/Core/Widget/WidgetContext.php 10 additions, 59 deletionstypo3/sysext/fluid/Classes/Core/Widget/WidgetContext.php
- typo3/sysext/fluid/Tests/Unit/Core/Widget/WidgetContextTest.php 2 additions, 2 deletions...sysext/fluid/Tests/Unit/Core/Widget/WidgetContextTest.php
Please register or sign in to comment