Куда я попал?
SECURITM это SGRC система, ? автоматизирующая процессы в службах информационной безопасности. SECURITM помогает построить и управлять ИСПДн, КИИ, ГИС, СМИБ/СУИБ, банковскими системами защиты.
А еще SECURITM это место для обмена опытом и наработками для служб безопасности.

RaspberryMatic unauthenticated Remote Code Execution vulnerability through HMServer File Upload.

exploit

RaspberryMatic / OCCU contains a unauthenticated remote code execution (RCE) vulnerability, caused by multiple issues within the Java based HMIPServer.jar component. The webui allows for Firmware uploads which can be reached through the URL `/pages/jpages/system/DeviceFirmware/addFirmware`. This allows an unauthenticated attacker to upload a malicious .tgz archive to the server, which will be automatically extracted without any further checks. As this entry can contain ../sequences, it is possible to break out of the predefined temp directory and write files to other locations outside this path. This vulnerability is commonly known as the Zip Slip vulnerability and can be used to overwrite arbitrary files on the main filesystem. It is therefore possible to overwrite the watchdog script with a malicious payload in `/usr/local/addons/mediola/bin/`, which will be executed every five minutes through a cron job where attackers can gain remote code execution as root user, allowing a full system compromise. RaspberryMatic versions <= `3.73.9.20240130` are vulnerable.

Модуль exploit/linux/http/raspberrymatic_unauth_rce_cve_2024_24578
Тип exploit
Ранг Excellent
Дата раскрытия 16.03.2024
Платформа Linux,Unix
Архитектура cmd
Авторы h00die-gr3y <h00die.gr3y@gmail.com>, h0ng10 <https://git.hub/h0ng10>
Файл в источнике /modules/exploits/linux/http/raspberrymatic_unauth_rce_cve_2024_24578.rb

Ссылки источника

Связанные уязвимости CVE

Идентификаторы CVE, объявленные в источнике для этого модуля
Идентификатор Описание
CVE-2024-24578 RaspberryMatic Unauthenticated Remote Code Execution vulnerability through HMServer File Upload

Связанные типы ошибок CWE

Идентификатор Описание
CWE-23 The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.
CWE-306 The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.

Мы используем cookie-файлы, чтобы получить статистику, которая помогает нам улучшить сервис для вас с целью персонализации сервисов и предложений. Вы может прочитать подробнее о cookie-файлах или изменить настройки браузера. Продолжая пользоваться сайтом, вы даёте согласие на использование ваших cookie-файлов и соглашаетесь с Политикой обработки персональных данных.