The vulnerability exists in the FileDownloadController of the TYPO3 CMS file list extension. Backend users with file download permissions could download files from the fallback storage of the File Abstraction Layer (FAL). The fallback storage resolves paths relative to the server's document root, which could expose sensitive files like log files.
The patch addresses this by modifying the collectFiles method within the TYPO3\CMS\Filelist\Controller\FileDownloadController class. A check is added to determine if a file belongs to a fallback storage using $fileOrFolderObject->getStorage()->isFallbackStorage(). If it does, the file is skipped, preventing its inclusion in the download archive.
The primary entry point for this functionality is the handleRequest method in the same controller, which processes the download request and calls collectFiles. Therefore, both handleRequest and collectFiles are relevant to this vulnerability. handleRequest is the function that would likely appear in a runtime profile during exploitation, as it's the public method handling the request. The actual vulnerability logic is within the collectFiles method.