GHSA-3R8J-PMCH-5J2H
Internal exception message exposure for login action in Sylius
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-3R8J-PMCH-5J2H divulgada | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice |
Internal exception message exposure for login action
### Impact
Exception messages from internal exceptions (like database exception) are wrapped by `\Symfony\Component\Security\Core\Exception\AuthenticationServiceException` and propagated through the system to UI. Therefore, some internal system information may leak and be visible to the customer.
A validation message with the exception details will be presented to the user when one will try to log into the shop.
### Patches
_Has the problem been patched? What versions should users upgrade to?_
### Workarounds
The `src/Sylius/Bundle/UiBundle/Resources/views/Security/_login.html.twig` file should be overridden and lines https://github.com/Sylius/Sylius/blob/1.4/src/Sylius/Bundle/UiBundle/Resources/views/Security/_login.html.twig#L13-L17 should be replaced with
{% if last_error %}
<div class="ui left aligned basic segment">
{{ messages.error(last_error.messageKey) }}
</div>
{% endif %}The `messageKey` field should be used instead of the `message`.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistsylius/sylius |
Corregida | 1.3.14, 1.4.10, 1.5.7, 1.6.3 | — | — |
1.3.141.4.101.5.71.6.3Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://nvd.nist.gov/vuln/detail/CVE-2019-16768https://github.com/advisories/GHSA-3r8j-pmch-5j2hhttps://github.com/Sylius/Sylius/security/advisories/GHSA-3r8j-pmch-5j2hhttps://github.com/Sylius/Sylius/commit/be245302dfc594d8690fe50dd47631d186aa945fLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
