Media

baserCMS administrative API authorization bypass through session fallback

  • Publicada: 20.11.2026
  • Actualizado: 20.11.2026 02:17

Summary

An authorization bypass occurs against the API endpoint /baser/api/admin/ by abusing the session authentication fallback.

Details

The mail settings are used here as an example.

Admin side:

https://github.com/baserproject/basercms/blob/master/plugins/baser-core/config/permission.php#L100 With auth => false, it is not accessible with operator privileges.

API side:

https://github.com/baserproject/basercms/blob/master/plugins/baser-core/config/permission.php#L286 With auth => true, it is accessible even with operator privileges.


First, the default group for operators has auth_prefix = 'Admin', which does not include Api/Admin.

https://github.com/baserproject/basercms/blob/master/plugins/baser-core/src/Model/Table/UsersTable.php#L389

Because of this condition, when trying to access the Api/Admin API with a JWT, operators have auth_prefix = 'Admin', so they cannot obtain a JWT and should not be able to access it.

However, there is a problem in getAuthenticationService.

https://github.com/baserproject/basercms/blob/master/plugins/baser-core/src/BaserCorePlugin.php#L507

Here, session authentication is enabled even for the Api/Admin prefix. By accessing the API with a Referer header, session authentication becomes active, allowing access to the API without holding a JWT.

As a result, all APIs configured with auth => true in permission.php become accessible by operators.

PoC

  1. Log in with a site operator (operator) privileged account.
  2. Run the following code in DevTools:
js
fetch('/baser/api/admin/baser-core/site_configs/view.json', {
  headers: {
    'Referer': location.origin + '/baser/admin/' 
  }
})
.then(r => r.json())
.then(d => {
  console.table(d.siteConfig);
})
<img width="1886" height="1027" alt="Screenshot_20260404_075242" src="https://github.com/user-attachments/assets/e91a1d27-ac36-42fb-88a8-bc699b28b04f" /> <img width="1277" height="595" alt="Screenshot_20260404_075133" src="https://github.com/user-attachments/assets/9c54459a-dad0-4445-a35d-1373255c2b22" />

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Paquete de Composer baserproject/baser-core < 5.3.0 5.3.0

Referencias

Puntuación CVSS 6.5/10
Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Debilidad (CWE)
CWE-290
Plataforma
Composer
Paquete
baserproject/baser-core
Publicada
20.11.2026
Actualizado
20.11.2026 02:17

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-wgvx-x5g3-9v29 - CC BY 4.0

Historial de vulnerabilidades: baserproject/baser-core

Todas las vulnerabilidades publicadas de este paquete (Paquete de Composer), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Entradas en total
2
Primera → última
11.2026 11.2026
Sin corrección
0
Explotada en ataques
0

Distribución por gravedad

  • Alta 1
  • Media 1

Divulgaciones por año

  1. 2026: 2
  1. baserCMS administrative API authorization bypass through session fallback esta entrada
    Media · 6.5 CVE-2026-63012 < 5.3.0 5.3.0

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.