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

goshs route not protected, allows command execution

متن اصلی

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

بازه‌ها نیاز به بررسی دارند.

نسخه‌های متأثر
>= 0.3.4, <= 1.0.4
نسخهٔ اصلاح‌شده
1.0.5
نسخه‌های متأثر
>=0.3.4 <1.0.5
نسخهٔ اصلاح‌شده
1.0.5

بهره‌برداری

CVE-2025-46816

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

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

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

Summary

It seems that when running goshs without arguments it is possible for anyone to execute commands on the server. This was tested on version 1.0.4 of goshs. The command function was introduced in version 0.3.4.

Details

It seems that the function dispatchReadPump does not checks the option cli -c, thus allowing anyone to execute arbitrary command through the use of websockets.

PoC

Used websocat for the POC:

echo -e '{"type": "command", "content": "id"}' |./websocat 'ws://192.168.1.11:8000/?ws' -t
Impact

The vulnerability will only impacts goshs server on vulnerable versions.

پیوندها

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

  • Guilhem7