Media

SimpleSAMLphp Reflected Cross-site Scripting vulnerability

  • Publicada: 28.05.2024
  • Actualizado: 11.10.2026 10:22

Background

SimpleSAMLphp uses metadata to determine how to interact with other SAML entities. This metadata includes what’s called endpoints, which are URLs belonging to that entity where SAML messages can be sent. These URLs are used directly by SimpleSAMLphp when a message is sent, either via an HTTP redirection or by automatically posting a form to them.

Description

When sending a SAML message to another entity, SimpleSAMLphp will use the URL of the appropriate endpoint to redirect the user’s browser to it, or craft a form that will be automatically posted to it, depending on the SAML binding used. The URL that’s target of the message is fetched from the stored metadata for the given entity, and that metadata is trusted as correct.

However, if that metadata has been altered by a malicious party (either an attacker or a rogue administrator) to substitute the URLs of the endpoints with javascript code, SimpleSAMLphp was blindly using them without any validation, trusting the contents of the metadata. This would lead to a reflected XSS where the javascript code is sent inline to the web browser, and if SimpleSAMLphp is not using a strict Content Security Policy to forbid inline javascript (which is the case of the default user interface), then the code will be executed in the end user’s browser.

Affected versions

All SimpleSAMLphp versions are affected, up to 1.17.2.

Impact

If metadata is consumed for a rogue entity that includes javascript code in the corresponding endpoints, this javascript code might be run by users trying to access this entity.

Even though it’s unlikely that an administrator would add metadata for an entity that contains such endpoints inadvertently, if metadata is consumed automatically (e.g. using metarefresh) it would be easier to have an scenario like the one described here if a SAML entity is compromised and its metadata modified.

The severity is assessed as medium given the difficulty to exploit the issue.

Software afectado

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

PlataformaPaqueteVersiones vulnerablesCorregida en
Paquete de Composer simplesamlphp/simplesamlphp >= 1.12.0, < 1.17.3 1.17.3

Referencias

Puntuación CVSS 6.1/10
Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Debilidad (CWE)
CWE-79
Plataforma
Composer
Paquete
simplesamlphp/simplesamlphp
Publicada
28.05.2024
Actualizado
11.10.2026 10:22

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-vpr3-cw3h-prw8 - CC BY 4.0

Historial de vulnerabilidades: simplesamlphp/simplesamlphp

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.

Todas (23) en el archivo
Entradas en total
23
Primera → última
01.2020 07.2026
Sin corrección
0
Explotada en ataques
0

Distribución por gravedad

  • Crítica 3
  • Alta 4
  • Media 12
  • Baja 4

Divulgaciones por año

  1. 2020: 6
  2. 2021: 0
  3. 2022: 12
  4. 2023: 0
  5. 2024: 4
  6. 2025: 0
  7. 2026: 1
Gravedad:
  1. SimpleSAMLphp Reflected Cross-site Scripting vulnerability esta entrada
    Media · 6.1 ghsa-vpr3-cw3h-prw8 >= 1.12.0, < 1.17.3 1.17.3
  2. Crítica · 9.8 CVE-2017-12868 >= 1.14.12, < 1.14.14 1.14.14
  3. Alta · 7.5 CVE-2017-12869 < 1.14.14 1.14.14
  4. Alta · 8.1 CVE-2017-18122 < 1.14.17 1.14.17
  5. Crítica · 9.8 CVE-2018-6521 < 1.15.2 1.15.2
  6. Alta · 7.5 CVE-2011-4625 < 1.8.1 1.8.1
  7. Crítica · 9.8 CVE-2017-12873 >= 1.7.0, < 1.14.11 1.14.11

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.