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

Command Injection Vulnerability in find-exec

متن اصلی

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

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

بهره‌برداری

CVE-2023-40582

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

FIRST EPSS · ۱۴۰۵/۰۸/۳۰

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

Older versions of the package are vulnerable to Command Injection as an attacker controlled parameter. As a result, attackers may run malicious commands.

For example:

const find = require("find-exec");
find("mplayer; touch hacked")

This creates a file named "hacked" on the filesystem.

You should never allow users to control commands to find, since this package attempts to run every command provided.

Thanks to @miguelafmonteiro for reporting.

پیوندها

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

  • miguelafmonteiro