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

exploitDog

github логотип

GHSA-5vf7-q87h-pg6w

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

Описание

Cross-Site Scripting in BookStack

Impact

A user with permission to create comments could POST HTML directly to the system to be saved in a comment, which would then be executed/displayed to others users viewing the comment. Through this vulnerability custom JavaScript code could be injected and therefore ran on other user machines.

This most impacts scenarios where not-trusted users are given permission to create comments.

Patches

The issue was addressed in BookStack v0.29.2.

After upgrading, The command php artisan bookstack:regenerate-comment-content should be ran to remove any pre-existing dangerous content.

Workarounds

Comments can be disabled in the system settings to prevent them being shown to users. Alternatively, comment creation permissions can be altered as required to only those who are trusted but this will not address existing exploitation of this vulnerability.

References

For more information

If you have any questions or comments about this advisory:

Пакеты

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

ssddanbrown/bookstack

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

>= 0.18.0, < 0.29.2

0.29.2

EPSS

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

6.3 Medium

CVSS3

Дефекты

CWE-79

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

CVSS3: 6.3
nvd
больше 5 лет назад

In BookStack greater than or equal to 0.18.0 and less than 0.29.2, there is an XSS vulnerability in comment creation. A user with permission to create comments could POST HTML directly to the system to be saved in a comment, which would then be executed/displayed to others users viewing the comment. Through this vulnerability custom JavaScript code could be injected and therefore ran on other user machines. This most impacts scenarios where not-trusted users are given permission to create comments. This has been fixed in 0.29.2.

EPSS

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

6.3 Medium

CVSS3

Дефекты

CWE-79