Description
Algernon is a small self-contained pure-Go web server. Prior to 1.17.7, the SSE event server's Access-Control-Allow-Origin response header was hardcoded to the wildcard * regardless of the caller's Origin. Because EventSource does not preflight and does not send cookies, the wildcard is sufficient to let any third-party page the developer visits open a cross-origin EventSource to the SSE port and read the live filename stream from JavaScript. This vulnerability is fixed in 1.17.7.
Problem types
CWE-942: Permissive Cross-domain Policy with Untrusted Domains
Product status
References
github.com/...gernon/security/advisories/GHSA-hw27-4v2q-5qff
github.com/...gernon/security/advisories/GHSA-hw27-4v2q-5qff