A user could upload PHP files through image upload functions, which would allow them to execute code on the host system remotely. They would then have the permissions of the PHP process.
This most impacts scenarios where non-trusted users are given permission to upload images in any area of the application.
The issue was addressed in a series of patches: v0.25.3, v0.25.4 and v0.25.5. Users should upgrade to at least v0.25.5 to avoid this patch but ideally the latest BookStack version as previous versions are un-supported.
Depending on BookStack version, you could use the local_secure image storage option, or use s3 or a similar compatible service.
Preventing direct execution of any php
files, apart from the public/index.php
file, though web-server configuration would also prevent this.
BookStack Beta v0.25.3 BookStack Beta v0.25.4 BookStack Beta v0.25.5
If you have any questions or comments about this advisory: * Open an issue in the BookStack GitHub repository. * Ask on the BookStack Discord chat. * Follow the BookStack Security advise to contact someone privately.
{ "nvd_published_at": null, "github_reviewed_at": "2020-03-13T20:20:25Z", "severity": "HIGH", "github_reviewed": true, "cwe_ids": [ "CWE-95" ] }