Plugin Author
icc0rz
(@icc0rz)
As far as I can tell you’re site has probably been infected or hacked somehow. The file you’ve shared is not a valid H5P file.
The plugin does not require the .h5p export files to function, you can delete them and they should regenerate on the next view if the download option is enabled.
Are there any files from the wp-content/uploads/h5p/libraries or wp-content/plugins/h5p that’s been put in quarentine?
What I would do in such a case is to investigate where the issue originated, revert back to my latest working backup and then ensure that it doesn’t happen again.
I ran the file through virus total, but it doesn’t seem to contain any (known) malicious code, cmp. https://www.virustotal.com/gui/file/c41139df7de3119f44ed1918f076f15aaa6cf302119718ef2eb895d19ce59ca9/detection
The file still seems to be a zip archive although it’s corrupted, so maybe the zipping/writing process was interrupted? Any server timeouts? Hit your storage quota? …
I notified my hosting provider. I’ll update you in case they have any additional comments/recommendations.
Thanks guys.
I have a question though: do H5P activities get stored in any folder or just in a database? I was taking a look at my CPanel but couldn’t find a folder with the activities stored in it. I only found the archives attached to them (images, sound, etc) and the actual activities stored in the database. The “activities put in quarentine by my hosting provider were located in a temp folder and this cought my attention.
H5P stores parameters and metadata of contents inside the database, uploaded media like images or audios in /wp-content/uploads/h5p/content (one directory for each content), and the complete files intended for downloading in /wp-content/uploads/h5p/exports.
As far as I know, the latter may change in the future and complete files may be only be created on demand instead of saving them in the aforementioned directory each time the content is saved.
The temp folder at /wp-content/uploads/h5p/temp is only used, well, temporarily, e.g. when uploading files in the editor or when saving content in order to compress the .h5p files for download.