GHSA-FJR5-6W4J-47XF
Format-string memory exhaustion in BSC capture manager via unvalidated file_name_pattern
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-FJR5-6W4J-47XF divulgada · CVSS 7.5 (GitHub) | |
| Remediación | Parche 3.1.2 | ait-core · 7 d desde divulgación | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The BSC capture manager passes an unvalidated `file_name_pattern` from a POST request into `str.format()`. A padding directive like `{name:999999999}` forces a ~1GB string allocation, crashing the server.
Details
File: `ait/core/bsc.py`
The REST handler at line 855 accepts `file_name_pattern` from the POST body. Commit `0261b70` blocked `log_dir_path` and validated `path`, but `file_name_pattern` was not included. It flows through to line 488:
log_file = log_file.format(**handler)The `handler` dictionary contains string fields including `name`. A `file_name_pattern` of `{name:999999999}` pads the `name` value to 999,999,999 characters.
PoC
AIT-Core 3.1.1 was installed and started the BSC manager on port 8080.
curl -X POST http://127.0.0.1:8080/pwn/start \
-d "loc=localhost" \
-d "port=12345" \
-d "conn_type=ethernet" \
-d "file_name_pattern={name:999999999}"Result: HTTP 500. The server allocated ~1GB in `str.format()` and became unresponsive. Repeating the request exhausts available memory.
Impact
Denial of service against the ground station capture manager. A single request crashes the process. Default config binds to localhost. Severity increases when bound to a network interface or reachable via co-located services.
Fix Details
- Blocked file_name_pattern parameter from REST API to prevent attacks.
- This pattern can only be set via configuration file.
Patch
3.1.2
Credit
Pavan Nallamothu https://www.linkedin.com/in/pavanchow/
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pypiait-core |
Corregida | 3.1.2 | 7 d | 3.1.2 no afectada |
3.1.2Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/NASA-AMMOS/AIT-Core/security/advisories/GHSA-fjr5-6w4j-47xfLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
