В MISP метод EventReport::uploadPicture обработал поставляемое абонентом поле tmp_name путем вызова file_exists(), mime_content_type() и exif_imagetype() на поставляемом пути, прежде чем проверить, что значение было подлинной загрузкой PHP через is_uploaded_file(). Аутентифицированный пользователь, имеющий разрешение perm_add, может предоставить произвольный путь файловой системы в качестве значения tmp_name. Затем приложение будет проверять этот путь и возвращать различные сообщения об ошибках проверки в зависимости от того, существовал ли файл, его тип MIME или его формат изображения.
Наблюдая различные ответы на ошибки, злоумышленник мог перечислить наличие файлов на произвольных путях на сервере MISP и определить их тип. Это представляет собой уязвимость в раскрытии информации: компоновка файловой системы сервера и типы файлов передаются любому пользователю с ролью perm_add, не требуя административного доступа. Уязвимость не позволяет читать содержимое файла, записывать файлы или выполнять код, но она может помочь дальнейшим атакам, обнаруживая уязвимые места файлов (например, конфигурационные файлы, закрытые ключи или другие артефакты), присутствующие на хосте.
Показать оригинальное описание (EN)
In MISP, the EventReport::uploadPicture method in processed a caller-supplied tmp_name field by invoking file_exists(), mime_content_type(), and exif_imagetype() on the supplied path before verifying that the value was a genuine PHP upload via is_uploaded_file(). An authenticated user holding the perm_add permission could supply an arbitrary filesystem path as the tmp_name value. The application would then probe that path and return distinct validation error messages depending on whether the file existed, its MIME type, or its image format. By observing the differing error responses, an attacker could enumerate the existence of files at arbitrary paths on the MISP server and determine their type. This constitutes an information disclosure vulnerability: the server's filesystem layout and file types are leaked to any user with the perm_add role without requiring administrative access. The vulnerability does not allow reading file contents, writing files, or executing code, but it can aid further attacks by revealing sensitive file locations (e.g., configuration files, private keys, or other artifacts) present on the host.
Характеристики атаки
Последствия
Строка CVSS v4.0