GHSA-372F-95VM-4MJ3
Zone-template records readable across templates through the web record views (cross-template IDOR)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-372F-95VM-4MJ3 divulgada · CVSS 4.3 (GitHub) | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The two zone-template record GET views authorize the route's `template_id` but load the
record by the independent route `id`, with no check that the record belongs to the
authorized template. A user with `zone_templ_edit` who owns any template reads records
from any other user's template.
This is an incomplete fix: `d583cbca9` added the missing ownership binding to the
mutation methods, and API v2 performs the binding for GET/update/delete, but the web GET
views were not updated.
Split note: this advisory originally also covered API v2 reading zone templates
without any `zone_templ_*` permission. That is an independent bug with its own fix and is
now tracked as GHSA-9j3w-6q4p-c73c so each can get its own CVE ID.
Affected Component
GET /zones/templates/{authorized_template_id}/records/{foreign_record_id}/edit
GET /zones/templates/{authorized_template_id}/records/{foreign_record_id}/deleteTechnical Details
`lib/Application/Controller/EditZoneTemplRecordController.php:73-80` authorizes
`zone_templ_id`; line 92 then calls `getZoneTemplRecordFromId($record_id)`
without comparing the returned record's `zone_templ_id`.
`DeleteZoneTemplRecordController.php:57-61, 80-87` does the same. The model query
at `ZoneTemplate.php:535-548` selects by `id` alone and returns the full record.
POST mutations are rejected by the newer domain-layer ownership check. This half
of the report concerns disclosure by GET, which that fix did not reach.
Reproduction
- Create user A with `zone_templ_edit`, and make A the owner of template 10.
- As another user, create template 20 and add record 202 with a distinctive TXT
- Authenticate as A and request `/zones/templates/20/edit` — Poweradmin returns
- Still as A, request `/zones/templates/10/records/202/edit`. HTTP 200, and the
- `/zones/templates/10/records/202/delete` also displays the foreign record in
direct_victim_template=200
direct_permission_errors=1
forged_edit=200 secret_hits=1
forged_delete=200 secret_hits=1The sentinel value was `VICTIM-DKIM-SECRET-f91d`, appearing once in each forged
response.
Impact
Zone templates are where an operator keeps NS hostnames, hostmaster addresses and
internal infrastructure records, so this discloses another tenant's private template
records, including internal network topology and naming. Nothing is mutated: the
mutation side is already guarded.
Severity
Medium - CVSS 4.3
`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
CWE-863 - Incorrect Authorization
Remediation
Path 1. Fetch by both identifiers, or reject when the fetched record's
`zone_templ_id` does not equal the authorized route template. Apply before
rendering either form and return 404 on mismatch.
Add GET/view coverage to the existing cross-template ownership regression tests.
References
- `lib/Application/Controller/EditZoneTemplRecordController.php:73-80, 92`
- `lib/Application/Controller/DeleteZoneTemplRecordController.php:57-61, 80-87`
- `lib/Domain/Model/ZoneTemplate.php:535-548`
- `d583cbca9` - the mutation-side fix this report completes
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistpoweradmin/poweradmin |
Corregida | 3.9.12, 4.2.6, 4.3.5, 4.4.1 | — | — |
3.9.124.2.64.3.54.4.1Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/poweradmin/poweradmin/security/advisories/GHSA-372f-95vm-4mj3Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
