Advisory

GHSA-3r8j-pmch-5j2h

Also known as: CVE-2019-16768

Summary

Internal exception message exposure for login action in Sylius

Details

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.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2019-12-05 19:57 UTC
Modified
2026-07-08 05:59 UTC

Affected packages and fixes

sylius/sylius

Packagist · All systems

Affected

  • introduced 0, fixed 1.3.14 (ecosystem)

Fixed versions

1.3.14

Fix

The export has no generic command for this ecosystem.

sylius/sylius

Packagist · All systems

Affected

  • introduced 1.4.0, fixed 1.4.10 (ecosystem)

Fixed versions

1.4.10

Fix

The export has no generic command for this ecosystem.

sylius/sylius

Packagist · All systems

Affected

  • introduced 1.5.0, fixed 1.5.7 (ecosystem)

Fixed versions

1.5.7

Fix

The export has no generic command for this ecosystem.

sylius/sylius

Packagist · All systems

Affected

  • introduced 1.6.0, fixed 1.6.3 (ecosystem)

Fixed versions

1.6.3

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences