GHSA-75MC-5WQF-XPVC
Stored XSS in Board/Canvas Titles
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-75MC-5WQF-XPVC divulgada · CVSS 5.4 (GitHub) | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
Due to a lack of input sanitization, any user with "Editor" permissions or higher on a project can perform a Stored Cross-Site Scripting (XSS) attack against other users within the project.
Details
User input from setting board/canvas titles is not properly sanitized to entity encode special HTML characters before being rendered in dialog boxes.
The following files are vulnerable:
- `app/Domain/Canvas/Templates/boardDialog.php`
- `app/Domain/Ideas/Templates/boardDialog.php`
Each of these files contain the same input element code for setting the title of a board/canvas.
<input type="text" name="canvastitle" value="<?= $canvasTitle?>" placeholder="<?= $tpl->__('input.placeholders.enter_title_for_board') ?>"
style="width: 100%"/>Since the `canvasTitle` variable is not sanitized to entity encode special HTML characters, user input can be interpreted as HTML.
PoC
- Create a new project.
- Add another user to the project team, ensuring they have "Editor" permissions or higher.
- Login as that user and navigate to any of the options under "THINK" on the sidebar menu. If "Blueprints" is chosen, select any of the board/canvas options.
!1 https://github.com/user-attachments/assets/533784a1-ed14-4654-815c-bbefc6c92c9f
- Click on the dropdown menu where the board/canvas title is and click "Create New Board".
!2 https://github.com/user-attachments/assets/c668ca00-47b0-430f-8881-52c09e392370
- Input `<script>alert(1)</script>` and click "Create Board". Notice that an alert is displayed.
!3 https://github.com/user-attachments/assets/6e1e2f52-d8bd-4166-b9e0-73bc15f2437e
- After closing the alert and dialog, click on the dropdown menu again and select the newly created board/canvas.
!4 https://github.com/user-attachments/assets/e11ada36-f091-4fec-bff2-51102d31c9ff
- Click the three dots in the top right and select the "Edit" option. Notice that an alert is displayed.
!5 https://github.com/user-attachments/assets/9d7d4f89-1671-4e80-b834-5a667e53e7fc
- Copy the current URL and load it as another user. Notice that an alert is displayed. The user can also navigate to the edit dialog manually to see the same payload.
!6 https://github.com/user-attachments/assets/2d94fef9-23e8-4187-8234-3d5144d314e9
Impact
This vulnerability can be utilized by a malicious attacker to perform Cross-Site Request Forgery (CSRF) attacks, deface the web page, phish users, read user data, download malware on a user's device, read cookies without the `HttpOnly` attribute set, and do much more. Any users within the same project as the attacker can be targeted.
Remediation
Use the PHP `htmlentities` function to sanitize user input. Both `boardDialog.php` files can be modified to include it.
<input type="text" name="canvastitle" value="<?= htmlentities($canvasTitle) ?>" placeholder="<?= $tpl->__('input.placeholders.enter_title_for_board') ?>"
style="width: 100%"/>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 |
|---|---|---|---|---|
Packagistleantime/leantime |
Corregida | 3.4.0 | — | — |
3.4.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/Leantime/leantime/security/advisories/GHSA-75mc-5wqf-xpvcLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
