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

SQL Injection in sequelize

متن اصلی

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

نسخه‌های متأثر
>= 5.0.0, < 5.15.1
نسخهٔ اصلاح‌شده
5.15.1
نسخه‌های متأثر
< 4.44.3
نسخهٔ اصلاح‌شده
4.44.3

بهره‌برداری

CVE-2019-10752

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

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

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

Affected versions of sequelize are vulnerable to SQL Injection. The function sequelize.json() incorrectly formatted sub paths for JSON queries, which allows attackers to inject SQL statements and execute arbitrary SQL queries if user input is passed to the query. Exploitation example:

return User.findAll({
  where: this.sequelize.json("data.id')) AS DECIMAL) = 1 DELETE YOLO INJECTIONS; -- ", 1)
});

Recommendation

If you are using sequelize 5.x, upgrade to version 5.15.1 or later. If you are using sequelize 4.x, upgrade to version 4.44.3 or later.

پیوندها