Because the filename is sanitized in the driver
after the check for denied file extensions is
performed, it was still possible to rename files
with denied file extensions.
We now perform the file extension check
on the final filename which is going to be used
by the driver.
This change makes the sanitizing method public
and introduces a basic implementation in
AbstractDriver to not break existing driver
implementations.
Fixes: #51495
Releases: 6.2, 6.1, 6.0
Change-Id: I2c055b7b070a5e13c2172d1f20fdcd83ee597e08
Security-Commit: b8fecf970bd2751588d3b64fceaf8b3dc4e1dd7f
Security-Bulletin: TYPO3-CORE-SA-2013-003
Reviewed-on: https://review.typo3.org/23594
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader