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

GHSA-474Q-9HGP-HCVX

Unauthenticated sessions take up player slots, preventing players from joining

Sin parche publicado
Descargar PNG JSON
CVSS 3.1
5.3
Media
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición1.420 dDesde la divulgación, 30 dic 2022, 3:32 p. m.
Detección1.420 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
30 dic 22
19 nov 26
20 nov 26
30 dic 22
21 dic 23
10 dic 24
30 nov 25
20 nov 26
FechaFaseEventoDetalle
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
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

### 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.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:N
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:L
AltoBajoNinguno
Versiones

Versiones afectadas

4.12.2
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistpocketmine/pocketmine-mp
Sin parche — — —
Explotación

Arsenal público

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

Referencias
Advisoryhttps://github.com/pmmp/PocketMine-MP/security/advisories/GHSA-474q-9hgp-hcvx

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