Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-g9rq-x4fj-f5hx

Опубликовано: 13 мар. 2020
Источник: github
Github: Прошло ревью
CVSS3: 7.9

Описание

Remote Code Execution Through Image Uploads in BookStack

Impact

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.

Patches

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.

Workarounds

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.

References

BookStack Beta v0.25.3 BookStack Beta v0.25.4 BookStack Beta v0.25.5

For more information

If you have any questions or comments about this advisory:

Пакеты

Наименование

ssddanbrown/bookstack

composer
Затронутые версииВерсия исправления

< 0.25.3

0.25.5

EPSS

Процентиль: 71%
0.00675
Низкий

7.9 High

CVSS3

Дефекты

CWE-95

Связанные уязвимости

CVSS3: 7.9
nvd
почти 6 лет назад

BookStack before version 0.25.5 has a vulnerability where 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 in versions 0.25.3, 0.25.4 and 0.25.5. Users should upgrade to at least v0.25.5 to avoid this vulnerability.

EPSS

Процентиль: 71%
0.00675
Низкий

7.9 High

CVSS3

Дефекты

CWE-95