llamaCVEVulnerability Intelligence
/
kirby

CVE-2021-29460

Cross-site scripting (XSS) from unsanitized uploaded SVG files

Specific setups onlyParche disponible
Descargar PNG JSON
CVSS 3.1
7.6
Alta
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N Fuente: CNA
5.4NVD · CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
ExplotaciónExploit públicoNo figura en CISA KEV
Exploits públicos11 fuente
Parche1 versión3.5.4
Exposición2.031 dDesde la divulgación, 27 abr 2021, 3:10 p. m.
Detección2.015 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Exploit-DB
Remediación
Monitoreo
Detectada
Verificada
27 abr 21
28 abr 21
3 ago 24
3 nov 26
18 nov 26
19 nov 26
27 abr 21
17 sept 22
7 feb 24
29 jun 25
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2021-29460 divulgada · CVSS 7.6 (CNA)
Explotación Exploit-DB 1 exploit público
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen

Kirby is an open source CMS. An editor with write access to the Kirby Panel can upload an SVG file that contains harmful content like `<script>` tags. The direct link to that file can be sent to other users or visitors of the site. If the victim opens that link in a browser where they are logged in to Kirby, the script will run and can for example trigger requests to Kirby's API with the permissions of the victim. This vulnerability is critical if you might have potential attackers in your group of authenticated Panel users, as 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. Visitors without Panel access can only use this attack vector if your site allows SVG file uploads in frontend forms and you don't already sanitize uploaded SVG files. The problem has been patched in Kirby 3.5.4. Please update to this or a later version to fix the vulnerability. Frontend upload forms need to be patched separately depending on how they store the uploaded file(s). If you use `File::create()`, you are protected by updating to 3.5.4+. As a work around you can disable the upload of SVG files in your file blueprints.

Affects Kirby Panel setups where editors can upload SVG or XML files, letting a malicious upload run script in a logged-in victim's browser. Fixed in Kirby 3.5.4.

¿Qué significa?Uploaded SVG or XML files containing harmful content such as script tags are not sanitized, so the script runs when a logged-in user opens the file's direct link. The script can trigger requests to Kirby's API with that user's permissions, which enables privilege escalation.
¿Quién está afectado?The issue affects Kirby setups where an editor with Panel write access can upload SVG or XML files, and the victim is logged in to Kirby when opening the file's direct link. To check, compare the installed Kirby version with 3.5.4 and review whether file blueprints allow SVG or XML uploads.
¿Qué hacer?Update to Kirby 3.5.4, which is the listed fix. If an update to 3.5.4 is not possible, disable the upload of SVG and XML files in your file blueprints, and validate or replace already uploaded files once.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
An editor with Panel write access uploads a malicious SVG or XML file, and a victim opens its direct link while logged in to Kirby“An editor with write access to the Kirby Panel can upload an SVG or XML file that contains harmful content like <script> tags”
MitigaciónDisable the upload of SVG and XML files in your file blueprints
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:R
NingunaRequerida
AlcanceS:C
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:L
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
kirby · getkirby/cms< 3.5.4
3.5.4
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
kirby
Corregida 3.5.4 — —
Versiones corregidas3.5.4
Explotación

Arsenal público

Exploit-DB
EDB-49808
1
Metasploit
—
0
Nuclei
—
0
PoC en GitHub
—
0
Referencias
Fabricantehttps://github.com/getkirby/kirby/security/advisories/GHSA-qgp4-5qx6-548g
Exploithttp://packetstormsecurity.com/files/162359/Kirby-CMS-3.5.3.1-Cross-Site-Scripting.html
Exploithttps://www.exploit-db.com/exploits/49808
Otrahttps://github.com/getkirby/kirby/releases/tag/3.5.4

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