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

exploitDog

github логотип

GHSA-jg82-xh3w-rhxx

Опубликовано: 18 окт. 2023
Источник: github
Github: Прошло ревью
CVSS3: 7.8

Описание

Synchrony deobfuscator prototype pollution vulnerability leading to arbitrary code execution

Impact

A __proto__ pollution vulnerability exists in synchrony versions before v2.4.4. Successful exploitation could lead to arbitrary code execution.

Summary

A __proto__ pollution vulnerability exists in the LiteralMap transformer allowing crafted input to modify properties in the Object prototype.

When executing in Node.js, due to use of the prettier module, defining a parser property on __proto__ with a path to a JS module on disk causes a require of the value which can lead to arbitrary code execution.

Patch

A fix has been released in deobfuscator@2.4.4.

Mitigation

Proof of Concept

Craft a malicious input file named poc.js as follows:

// Malicious code to be run after this file is imported. Logs the result of shell command "dir" to the console. console.log(require('child_process').execSync('dir').toString()) // Synchrony exploit PoC { var __proto__ = { parser: 'poc.js' } }

Then, run synchrony poc.js from the same directory as the malicious file.

Credits

This vulnerability was found and disclosed by William Khem-Marquez.

Пакеты

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

deobfuscator

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

>= 2.0.1, < 2.4.4

2.4.4

EPSS

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

7.8 High

CVSS3

Дефекты

CWE-1321

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

CVSS3: 8.1
nvd
больше 2 лет назад

Synchrony deobfuscator is a javascript cleaner & deobfuscator. A `__proto__` pollution vulnerability exists in versions before v2.4.4. Successful exploitation could lead to arbitrary code execution. A `__proto__` pollution vulnerability exists in the `LiteralMap` transformer allowing crafted input to modify properties in the Object prototype. A fix has been released in `deobfuscator@2.4.4`. Users are advised to upgrade. Users unable to upgrade should launch node with the [--disable-proto=delete][disable-proto] or [--disable-proto=throw][disable-proto] flags

EPSS

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

7.8 High

CVSS3

Дефекты

CWE-1321