GHSA-474Q-9HGP-HCVX
Unauthenticated sessions take up player slots, preventing players from joining
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-474Q-9HGP-HCVX divulgada · CVSS 5.3 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
### Impact
PocketMine-MP currently does not limit the maximum number of unauthenticated sessions. Max player count is checked only when `PlayerPreLoginEvent` is reached. No problems so far.
On a 100-player server, an attacker can create 110 sessions, and never send the `LoginPacket`. These sessions won't be kicked as explained above (until a 10-second login timeout is reached). However, since these unauthenticated sessions are included for the `max-players` check, this means that any real player who sends a `LoginPacket` is immediately disconnected.
The solution to this is fairly simple: only include sessions in the max-players check which themselves have already passed a max-players check, i.e. sessions which have sent a `LoginPacket`. (Note that this is NOT the same as `count(getOnlinePlayers())`, as `getOnlinePlayers()` only includes connections for which a `Player` has been created.)
### Patches
This problem has been fixed by 59be901efe6b7833e69e638e0e1497051ce96fa7.
### Workarounds
A possible workaround is to increase the max player count of your server. This isn't a great solution, but it helps to mitigate the problem by making it harder to fill all the player slots. You can also un-cancel `PlayerPreLoginEvent` if the reason is `SERVER_FULL` (but beware of using `getOnlinePlayers()` for a replacement check, as this will allow your max-players to be exceeded in some cases).
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Desglose de métricas
Versiones afectadas
4.12.2Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistpocketmine/pocketmine-mp |
Sin parche | — | — | — |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/pmmp/PocketMine-MP/security/advisories/GHSA-474q-9hgp-hcvxLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
