llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · getkirby/cms

GHSA-RV3R-VQJJ-8C76

Cross-site scripting from content entered in the tags and multiselect fields

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche3 versiones3.5.8.1 · 3.6.6.1 · 3.7.4
Exposición1.541 dDesde la divulgación, 30 ago 2022, 3:53 p. m.
Detección1.539 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Monitoreo
Detectada
30 ago 22
24 mar 25
17 nov 26
19 nov 26
30 ago 22
20 sept 23
9 oct 24
30 oct 25
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-RV3R-VQJJ-8C76 divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Introduction

Cross-site scripting (XSS) is a type of vulnerability that allows to execute any kind of JavaScript code inside the Panel session of the same or other users. In the Panel, a harmful script can for example trigger requests to Kirby's API with the permissions of the victim.

Such vulnerabilities are critical if you might have potential attackers in your group of authenticated Panel users. They can escalate their privileges if they get access to the Panel session of an admin user. Depending on your site, other JavaScript-powered attacks are possible.

Impact

The tags and multiselect fields allow to select tags from an autocompleted list. The tags field also allows to enter new tags or edit existing tags. Kirby already handled escaping of the autocompleted tags, but unfortunately the Panel used HTML rendering for new or edited tags as well as for custom tags from the content file.

This allowed attackers with Panel access to store malicious HTML code in a tag. The browser of the victim who visited the modified page in the Panel will then have rendered this malicious HTML code.

It also allowed self-inflicted XSS attacks in the tags field (meaning that malicious code is executed in the browser of the user who entered it). This could be used in social engineering attacks where a victim is convinced by an attacker to enter malicious code into a tags field.

Visitors without Panel access could *only* use this attack vector if your site allows changing the content of a tags or multiselect field from a frontend form (for example user self-registration or the creation of pages from a contact or other frontend form). If you validate or sanitize the provided form data, you are already protected against such attacks by external visitors.

You are also *not* affected by these vulnerabilities if your site doesn't have untrustworthy users with Panel access or a way to modify field values from the frontend or if you don't use the tags or multiselect fields.

Patches

The problems have been patched in Kirby 3.5.8.1 https://github.com/getkirby/kirby/releases/tag/3.5.8.1, Kirby 3.6.6.1 https://github.com/getkirby/kirby/releases/tag/3.6.6.1 and Kirby 3.7.4 https://github.com/getkirby/kirby/releases/tag/3.7.4. Please update to one of these or a later version https://github.com/getkirby/kirby/releases to fix the vulnerabilities.

Note: The fixes for these vulnerabilities have the side effect that values in the tags and multiselect fields that come from dynamic options are displayed with double escaping (e.g. the `&` character is displayed as `&`). In the fix for Kirby 3.5, every value in the tags field is displayed with double escaping when dynamic options are enabled, while dynamic options themselves are displayed with triple escaping. We will fix the double/triple escaping issues with a refactoring of the options fields (tags, multiselect, checkboxes, radio, select and toggles) in Kirby 3.8.

Workarounds

We recommend to update to one of the patch releases. If you cannot update immediately, you can work around the issue by disabling the tags and multiselect fields. This can be done by uncommenting these fields from all your blueprints.

Versiones

Rangos afectados

Afectada Corregida
getkirby/cms≥ 3.5.7 < 3.5.8.1
getkirby/cms≥ 3.6.0 < 3.6.6.1
getkirby/cms≥ 3.7.0 < 3.7.4
3.5.7
3.5.8.1
3.6.0
3.6.6.1
3.7.0
3.7.4
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistgetkirby/cms
Corregida 3.5.8.1, 3.6.6.1, 3.7.4 — —
Versiones corregidas3.5.8.13.6.6.13.7.4
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Otrahttps://github.com/getkirby/kirby/security/advisories/GHSA-rv3r-vqjj-8c76
Otrahttps://github.com/getkirby/kirby

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.