Skip to content
Snippets Groups Projects
  1. Jun 14, 2022
    • Torben Hansen's avatar
      [SECURITY] Do not log stacktrace in exception handlers · f9a1f183
      Torben Hansen authored
      When a TYPO3 exception is handled through registered exception
      handlers, log writers may log sensitive information to logs,
      since the full stacktrace is logged.
      
      With this change, exception handlers that extend
      AbstractExceptionHandler except DebugExceptionHandler will
      by default not include the exception object any more and
      thereby not log the full stacktrace.
      
      Resolves: #96866
      Releases: main, 11.5, 10.4
      Change-Id: Iaf233eefc9a1a60334a47753baf457e8282e68c0
      Security-Bulletin: TYPO3-CORE-SA-2022-002
      Security-References: CVE-2022-31047
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74893
      
      
      Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
      Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
      f9a1f183
    • Torben Hansen's avatar
      [SECURITY] Restrict export functionality to allowed users · 3aef4183
      Torben Hansen authored
      The import functionality of the import/export module is already
      restricted to admin users or users, who explicitly have access through
      the user TSConfig setting "options.impexp.enableImportForNonAdminUser".
      
      The export functionality has the following security drawbacks:
      
      * Export for editors is not limited on field level
      * The "Save to filename" functionality saves to a shared folder, which
        other editors with different access rights may have access to.
      
      Both issues are not easy to resolve and also the target audience for
      the Import/Export functionality are mainly TYPO3 admins.
      
      Therefore, now also the export functionality is restricted to TYPO3
      admin users and to users, who explicitly have access through the new
      user TSConfig setting "options.impexp.enableExportForNonAdminUser".
      
      Additionally, the contents of the temporary "importexport" folder in
      file storages is now only visible to users who have access to the
      export functionality.
      
      In general, it is recommended to only install the Import/Export
      extension when the functionality is required.
      
      Resolves: #94951
      Releases: main, 11.5, 10.4
      Change-Id: Iae020baf051aeec0613366687aa8ebcbf9b3d8b2
      Security-Bulletin: TYPO3-CORE-SA-2022-001
      Security-References: CVE-2022-31046
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74892
      
      
      Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
      Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
      3aef4183
    • André Buchmann's avatar
      [BUGFIX] Apply empty values in language-overlay · cb1d82f7
      André Buchmann authored
      Some default fields (e.g. tt_content.bodytext) can contain null values.
      TYPO3 first fetches the data in the default language and then overlays
      the rows data with the translation values. The overlay method inspects
      each array item with the php isset() function. This validates not only
      the existence of the array key, but also the values. null and
      false values evaluated as false. Empty strings evaluate as true.
      This leads to inconsistent output in the frontend.
      
      The overlay now valides only the array key existence and applies also
      empty values.
      
      Resolves: #97616
      Releases: main, 11.5, 10.4
      Change-Id: I4b01c52e9ac7adde786b3395bce870bc0a354b58
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74837
      
      
      Tested-by: default avatarAndré Buchmann <andy.schliesser@gmail.com>
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Tested-by: default avatarBenni Mack <benni@typo3.org>
      Reviewed-by: default avatarAndré Buchmann <andy.schliesser@gmail.com>
      Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
      Reviewed-by: default avatarBenni Mack <benni@typo3.org>
      cb1d82f7
  2. Jun 13, 2022
  3. Jun 11, 2022
  4. Jun 10, 2022
  5. Jun 07, 2022
  6. Jun 06, 2022
  7. Jun 03, 2022
  8. May 28, 2022
  9. May 27, 2022
  10. May 19, 2022
  11. May 11, 2022
  12. May 10, 2022
  13. May 07, 2022
  14. May 06, 2022
  15. May 04, 2022
  16. May 03, 2022
  17. Apr 27, 2022
  18. Apr 25, 2022
  19. Apr 20, 2022
  20. Apr 16, 2022
  21. Apr 12, 2022
  22. Apr 06, 2022
  23. Apr 05, 2022
  24. Mar 31, 2022
    • Christian Kuhn's avatar
      [TASK] runTests.sh: Remove .csv integrity handling · 2a47cb96
      Christian Kuhn authored
      When core functional tests started to heavily rely
      on CSV based import- and assertion files, we found
      that editing such .csv files in Microsoft Excel leads
      to warnings if the number of columns is not identical
      for each row.
      
      Script checkIntegrityCsvFixtures.php has then been
      established to verify all rows of .csv fixture files
      have the same amount of fields per file, and has been
      enabled as CI job to ensure all existing fixture
      files follow this.
      
      Nowadays, this restriction feels archaic: Devs actively
      working with these CSV files typically edit them in
      an IDE like PhpStorm directly and don't use Excel for
      this anymore. The PhpStorm plugin "Rainbox CSV" also
      helps by coloring these files and other alternatives
      like libreoffice do not have this 'all rows must have
      same number of colums' restriction.
      
      The patch drops the script, the runTests.sh usage and
      the CI calls. This has the additional advantage that
      line breaks for single fields are now possible, which
      will further improve handling and readability of field
      values in upcoming patches.
      
      Resolves: #97274
      Related: #83943
      Releases: main, 11.5, 10.4
      Change-Id: I2b4c2afc98c8471bccae1afb15e055182b563ee7
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74131
      
      
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      2a47cb96
  25. Mar 29, 2022
  26. Mar 26, 2022
  27. Mar 25, 2022
  28. Mar 22, 2022
  29. Mar 15, 2022
  30. Mar 08, 2022