Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legacy xls upload not possible anymore #52

Open
Patta opened this issue Mar 28, 2024 · 1 comment
Open

Legacy xls upload not possible anymore #52

Patta opened this issue Mar 28, 2024 · 1 comment

Comments

@Patta
Copy link

Patta commented Mar 28, 2024

Since v5.0.x, the import of old .xls files is no longer possible due to possible security problems.
This may also affect other old file extensions.
Converting .xls to .xlsx is a workaround.

This warning is shown after uploading:

503
Oops, an error occurred!
Detected use of ENTITY in XML, spreadsheet file load() aborted to prevent XXE/XEE attacks

Exception in BE log:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: Detected use of ENTITY in XML, spreadsheet file load() aborted to prevent XXE/XEE attacks | PhpOffice\PhpSpreadsheet\Reader\Exception thrown in file /var/www/vhosts/REMOVED/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Security/XmlScanner.php in line 151. Requested URL: https://REMOVED/typo3/module/web/xlsimport?token=--AnonymizedToken--&action=upload&id=17342

Possible solution:
Remove .xls from the allowed file extensions and update the import info to modern file extensions above the import form in the backend module.

OS: Debian
Server: Apache
TYPO3: 11.5.36
PHP: 8.1.27
Composer: yes

@calien666
Copy link
Member

Thank you for the hint, I will take care about this and will remove the legacy xls support asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants