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

CosmicSting: Magento Arbitrary File Read (CVE-2024-34102) + PHP Buffer Overflow in the iconv() function of glibc (CVE-2024-2961)

exploit

This combination of an Arbitrary File Read (CVE-2024-34102) and a Buffer Overflow in glibc (CVE-2024-2961) allows for unauthenticated Remote Code Execution on the following versions of Magento and Adobe Commerce and earlier if the PHP and glibc versions are also vulnerable: - 2.4.7 and earlier - 2.4.6-p5 and earlier - 2.4.5-p7 and earlier - 2.4.4-p8 and earlier Vulnerable PHP versions: - From PHP 7.0.0 (2015) to 8.3.7 (2024) Vulnerable iconv() function in the GNU C Library: - 2.39 and earlier The exploit chain is quite interesting and for more detailed information check out the references. The tl;dr being: CVE-2024-34102 is an XML External Entity vulnerability leveraging PHP filters to read arbitrary files from the target system. The exploit chain uses this to read /proc/self/maps, providing the address of PHP's heap and the libc's filename. The libc is then downloaded, and the offsets of libc_malloc, libc_system and libc_realloc are extracted, and made use of later in the chain. With this information and expert knowledge of PHP's heap (chunks, free lists, buckets, bucket brigades), CVE-2024-2961 can be exploited. A long chain of PHP filters is constructed and sent in the same way the XXE is exploited, building a payload in memory and using the buffer overflow to execute it, resulting in an unauthenticated RCE.

Модуль exploit/linux/http/magento_xxe_to_glibc_buf_overflow
Тип exploit
Ранг Excellent
Дата раскрытия 26.07.2024
Платформа Linux,Unix
Архитектура cmd
Авторы Sergey Temnikov, Charles Fol, Heyder, jheysel-r7
Файл в источнике /modules/exploits/linux/http/magento_xxe_to_glibc_buf_overflow.rb

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

Идентификаторы CVE, объявленные в источнике для этого модуля
Идентификатор Описание
CVE-2024-2961 The iconv() function in the GNU C Library versions 2.39 and older may overflow the output buffer passed to it by up to 4 byte...
CVE-2024-34102 XXE can expose crypt key and other secrets granting full admin access

Связанные уязвимости БДУ ФСТЭК

Идентификатор Название
BDU:2024-03171 Уязвимость функции iconv() системной библиотеки glibc, позволяющая нарушителю выполнить произвольный код
BDU:2024-04655 Уязвимость программных платформ для разработки и управления онлайн магазинами Magento Open Source, Adobe Commerce и плагина Adobe Commerce Webhooks, связанная с неверным ограничением XML-ссылок на внешние объекты, позволяющая нарушителю выполнить про...

Связанные бюллетени НКЦКИ

Идентификатор Дата бюллетеня Описание
VULN:20240419-7 19.04.2024 Выполнение произвольного кода в Glibc
VULN:20240729-2 29.07.2024 Выполнение произвольного кода в Dell SmartFabric OS10
VULN:20240904-10 04.09.2024 Выполнение произвольного кода в Traffix SDC OpenSSL component
VULN:20240715-51 15.07.2024 Межсайтовый скриптинг в Adobe Commerce (formerly Magento Commerce)

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

Идентификатор Описание
CWE-787 The product writes data past the end, or before the beginning, of the intended buffer.
CWE-611 The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.

CISA KEV - известные эксплуатируемые уязвимости

Записи каталога CISA, для которых известны факты активной эксплуатации
Идентификатор Дата добавления Описание Ransomware
CVE-2024-34102 17.07.2024 Adobe Commerce and Magento Open Source contain an improper restriction of XML external entity reference (XXE) vulnerability that allows for remote code execution. Нет

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