همهٔ گزارش‌ها
بحرانی

Sandbox Breakout in safe-eval

متن اصلی

نسخه‌های متأثر

نسخه‌های متأثر
<= 0.3.0
نسخهٔ اصلاح‌شده
اعلام نشده

بهره‌برداری

CVE-2017-16088

احتمال بهره‌برداری در ۳۰ روز آینده: 3.38%

FIRST EPSS · ۱۴۰۵/۰۸/۲۹

شرح آسیب‌پذیری

Affected versions of safe-eval are vulnerable to a sandbox escape. By accessing object constructors, un-sanitized user input can access the entire standard library and effectively break out of the sandbox.

Proof of Concept:

This code accesses the process object and calls .exit()

var safeEval = require('safe-eval');
safeEval("this.constructor.constructor('return process')().exit()");

Recommendation

Update to version 0.4.0 or later

پیوندها