Wire предоставляет gRPC и буферы протоколов для Android, Kotlin, Swift и Java. До версий 6.3.0 и 7.0.0-alpha03 ByteArrayProtoReader32.skipGroup() и ProtoReader.skipGroup() во время выполнения проводной среды не проверяли, что длина поля LENGTH_DELIMITED неотрицательна перед пропуском(), что позволяет созданному protobuf varint кодировать -128 как знаковое Int, чтобы заставить Skip(-128) переместить внутреннее позиция отрицательная и сделайте следующий readByte() выбрасывающим ArrayIndexOutOfBoundsException вместо документированного IOException или ProtocolException, что может привести к сбою служб, использующих ProtoAdapter.decode(byte[]) для ненадежных полезных данных. Эта проблема исправлена в версиях 6.3.0 и 7.0.0-alpha03.
Показать оригинальное описание (EN)
Wire provides gRPC and protocol buffers for Android, Kotlin, Swift, and Java. Prior to 6.3.0 and 7.0.0-alpha03, ByteArrayProtoReader32.skipGroup() and ProtoReader.skipGroup() in wire-runtime do not validate that a LENGTH_DELIMITED field length is non-negative before skip(), allowing a crafted protobuf varint encoding -128 as a signed Int to make skip(-128) move the internal position negative and make the next readByte() throw ArrayIndexOutOfBoundsException instead of the documented IOException or ProtocolException, which can crash services using ProtoAdapter.decode(byte[]) on untrusted payloads. This issue is fixed in versions 6.3.0 and 7.0.0-alpha03.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 3
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Squareup Wire
cpe:2.3:a:squareup:wire:*:*:*:*:*:*:*:*
|
— |
6.3.0
|
|
Squareup Wire
cpe:2.3:a:squareup:wire:7.0.0:alpha01:*:*:*:*:*:*
|
— | — |
|
Squareup Wire
cpe:2.3:a:squareup:wire:7.0.0:alpha02:*:*:*:*:*:*
|
— | — |