Advisory

GHSA-wwgf-3xp7-cxj4

Also known as: None

Summary

Potentially sensitive data exposure in Symfony Web Socket Bundle

Details

Impact
Inside Gos\Bundle\WebSocketBundle\Server\App\Dispatcher\TopicDispatcher::onPublish(), messages are arbitrarily broadcasted to the related Topic if Gos\Bundle\WebSocketBundle\Server\App\Dispatcher\TopicDispatcher::dispatch() does not succeed. The dispatch() method can be considered to not succeed if (depending on the version of the bundle) the callback defined on a topic route is misconfigured, a Gos\Bundle\WebSocketBundle\Topic\TopicInterface implementation is not found for the callback, a topic which also implements Gos\Bundle\WebSocketBundle\Topic\SecuredTopicInterface rejects the connection, or an Exception is unhandled. This can result in an unintended broadcast to the websocket server potentially with data that should be considered sensitive.

Patches
In 1.10.4, 2.6.1, and 3.3.0, Gos\Bundle\WebSocketBundle\Server\App\Dispatcher\TopicDispatcher::onPublish() has been changed to no longer broadcast an event's data if Gos\Bundle\WebSocketBundle\Server\App\Dispatcher\TopicDispatcher::dispatch() fails.

Workarounds
Upgrade to 1.10.4, 2.6.1, and 3.3.0

Note, the 1.x branch is considered end of support as of July 1, 2020.

For more information
If you have any questions or comments about this advisory:

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2020-07-07 16:33 UTC
Modified
2024-12-02 05:44 UTC

Affected packages and fixes

gos/web-socket-bundle

Packagist · All systems

Affected

  • introduced 0, fixed 1.10.4 (ecosystem)

Fixed versions

1.10.4

Fix

The export has no generic command for this ecosystem.

gos/web-socket-bundle

Packagist · All systems

Affected

  • introduced 2.0.0, fixed 2.6.1 (ecosystem)

Fixed versions

2.6.1

Fix

The export has no generic command for this ecosystem.

gos/web-socket-bundle

Packagist · All systems

Affected

  • introduced 3.0.0, fixed 3.3.0 (ecosystem)

Fixed versions

3.3.0

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