Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. gos/web-socket-bundle
  4. ›
  5. GMS-2020-569

GMS-2020-569: Potentially sensitive data exposure in Symfony Web Socket Bundle

July 7, 2020 (updated September 22, 2021)

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:

  • Open an issue in this repository

References

  • github.com/FriendsOfPHP/security-advisories/commit/942fd37245cb724ba8cc8d6f11f075a1bd53b338
  • github.com/GeniusesOfSymfony/WebSocketBundle/security/advisories/GHSA-wwgf-3xp7-cxj4
  • github.com/advisories/GHSA-wwgf-3xp7-cxj4
  • snyk.io/vuln/SNYK-PHP-GOSWEBSOCKETBUNDLE-575401

Code Behaviors & Features

Detect and mitigate GMS-2020-569 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.10.4, all versions starting from 2.0.0 before 2.6.1, all versions starting from 3.0.0 before 3.3.0

Fixed versions

  • 1.10.4
  • 2.6.1
  • 3.3.0

Solution

Upgrade to versions 1.10.4, 2.6.1, 3.3.0 or above.

Source file

packagist/gos/web-socket-bundle/GMS-2020-569.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:49 +0000.