llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · pocketmine/pocketmine-mp

GHSA-WJFQ-88Q2-R34J

Unhandled exception when decoding form response JSON

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión4.0.7
Exposición1.762 dDesde la divulgación, 21 ene 2022, 6:02 p. m.
Detección1.760 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Monitoreo
Detectada
21 ene 22
8 sept 26
17 nov 26
19 nov 26
21 ene 22
7 abr 23
21 jun 24
4 sept 25
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-WJFQ-88Q2-R34J divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

### Impact
When handling form responses from the client (`ModalFormResponsePacket`), the Minecraft Windows client may send weird JSON that `json_decode()` can't understand. A workaround for this is implemented in `InGamePacketHandler::stupid_json_decode()`.

An `InvalidArgumentException` is thrown by this function when it fails to fix an error found in the JSON, which is not caught by the caller. This leads to a server crash.

### Patches
56fe71d939c38fe14e18a31a673a9331bcc0e4ca

### Workarounds
A plugin may handle `DataPacketReceiveEvent`, capture `ModalFormResponsePacket` and run the provided JSON through `stupid_json_decode`.

Note that this requires copying the body of the function to a plugin, since the function is currently private.

### For more information
If you have any questions or comments about this advisory:
* Email us at [team@pmmp.io](mailto:team@pmmp.io)

Versiones

Rangos afectados

Afectada Corregida
pocketmine/pocketmine-mp≥ 4.0.0 < 4.0.7
4.0.0
4.0.7
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistpocketmine/pocketmine-mp
Corregida 4.0.7 — —
Versiones corregidas4.0.7
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Otrahttps://github.com/pmmp/PocketMine-MP/security/advisories/GHSA-wjfq-88q2-r34j
Otrahttps://github.com/pmmp/PocketMine-MP/commit/56fe71d939c38fe14e18a31a673a9331bcc0e4ca
Otrahttps://github.com/pmmp/PocketMine-MP
Otrahttps://github.com/pmmp/PocketMine-MP/blob/4.0.7/changelogs/4.0.md#407

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.