Удалённое выполнение кода через обход десериализации BSON в драйвере MongoDB C#
MongoDB C# Driver
Кратко
Обход списка разрешённых типов при десериализации BSON-объектов в драйвере MongoDB для C# позволяет злоумышленнику, способному предоставить данные, которые приложение позже прочитает, вызвать выполнение произвольного кода в контексте приложения, при условии наличия в приложении подходящего типа-гаджета. Атака может быть проведена удалённо по сети с низкими привилегиями и без участия пользователя.
Резюме сгенерировано ИИ по данным источников и переведено автоматически.
Исправление
Исправлено в версиях: 3.14.0
Затронутые версии
| C# Driver | с 3.2.0 → исправлено в 3.14.0 |
| MongoDB.BsonNuGet | с 3.2.0 → исправлено в 3.14.0 |
Оригинальное описание (EN)
Оригинальный заголовок: MongoDB C# Driver remote code execution via BSON deserialization bypass
A type allow-list bypass in the BSON serialization library of the MongoDB C# Driver allows a type-restriction check to be circumvented when polymorphic data is deserialized into loosely typed members. An unauthorized party who can supply or plant BSON/JSON data that the application later deserializes can cause the application process to instantiate .NET types outside the intended allow-list and populate them with unauthorized party-controlled values. In applications that contain a suitable gadget type, this can lead to arbitrary code execution in the context of the application, with corresponding loss of confidentiality, integrity, and availability. No special privileges beyond the ability to introduce data the application reads are required.