OmniFaces: SSE push channels are not bound to their owning HTTP session
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| omnifacesomnifaces | — | Not listed |
| Mavenorg.omnifaces:omnifaces |
< 5.4.3→ 5.4.3 |
5.4.3 |
Original description The description as published by the source.
Summary
GHSA-fp43-vj7g-pg92 (fixed 5.4.2) bound session- and view-scoped WebSocket (o:socket) push channels to the HTTP session that registered them, so a leaked channel ID can no longer be connected to from a foreign or absent HTTP session. The fix (d5cae243c4) touched only the Socket* classes.
The parallel SSE (o:sse, added in 5.2) push transport was left unchanged. SseEndpoint.doGet accepts a connection whenever the presented channel ID is in the application-wide registry, without ever checking that the caller's HTTP session owns it. A leaked session/view-scoped SSE channel ID can therefore be replayed from any (or no) HTTP session to receive the messages pushed to it — exactly the behaviour the advisory removed for WebSocket, still present on SSE at the latest release.
Root Cause
Both push transports share the same base classes. A session- or view-scoped channel ID is minted as channel + "?" + UUID.randomUUID() and registered only in an application-scoped, session-agnostic registry: PushChannelManager#L123 mints it and [#L136](https://github.com/omnifaces/omnifaces/blob/7cd869c039c22c8a107547ec118717cd9b68305b/src/main…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- package github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com