GHSA-V645-243F-JWGH
Authentication Context Confusion: Editor Escalates to Admin via Username Collision
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-V645-243F-JWGH divulgada · CVSS 8.8 (GitHub) | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The authentication subsystem separates password validation from session loading into two independent database queries without ensuring both operate on the same user record. Combined with the absence of a `UNIQUE` constraint on the `username` column, this allows an authenticated Editor to create a username collision and obtain an Administrator session without knowing the administrator's password.
Details
When multiple accounts share the same username, `serendipity_authenticate_author()` successfully validates the password against one matching record but subsequently calls `serendipity_load_userdata()` using only the username. `serendipity_load_userdata()` performs a second lookup and loads the first matching record instead of the authenticated one, resulting in authentication context confusion.
Because authenticated users can rename their account to an existing administrator username, an Editor can authenticate using their own password while the session is initialized using the Administrator's account data, resulting in privilege escalation.
Proof of Concept
An authenticated Editor:
- Changes their username to match an existing Administrator account.
- Logs in using the duplicated username and their own password.
- Authentication succeeds against the Editor account.
- Session initialization loads the Administrator account, granting administrative privileges.
Impact
- CWE-287 – Improper Authentication
- Privileges Required: Low (authenticated Editor)
- User Interaction: None
An authenticated Editor can obtain full Administrator privileges without knowledge of the Administrator's password, resulting in complete compromise of the Serendipity instance.
Severity
Severity: High
CVSS v3.1: 8.8 (High)
Vector: `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
Metric Breakdown
| Metric | Value |
|--------|-------|
| Attack Vector | Network |
| Attack Complexity | Low |
| Privileges Required | Low |
| User Interaction | None |
| Scope | Unchanged |
| Confidentiality | High |
| Integrity | High |
| Availability | High |
CVE Assignment
CVE-2026-67351 was assigned by VulnCheck. This GitHub Security Advisory documents the same vulnerability and corresponds to the assigned CVE. Users and downstream consumers should reference CVE-2026-67351 when tracking this issue.
Link to the CVE-2026-67351 https://www.cve.org/CVERecord?id=CVE-2026-67351
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 |
|---|---|---|---|---|
Packagists9y/serendipity |
Sin parche | — | — | — |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/s9y/Serendipity/security/advisories/GHSA-v645-243f-jwghLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
