TYPO3's clipboard functionality is able to store arbitrary records and
files to further copy or move them around. While the copy and move
operations are already covered by appropriate permission checks, the
actual clipboard insertion step failed to properly calculate actual
permissions. This allowed an attacker to insert arbitrary records and
files into the clipboard, which in turn allowed them to gather
information about the stored records/files.
This changes implements proper permission checks to avoid the described
scenario. Whenever records and files are inserted to the clipboard, they
are validated against existing read permissions for the current backend
user. If the user does not have proper permissions, the requested
records and files are denied for clipboard insertion.