Daniel Bae
Menu

Defensive edition

Ghostlink and the identity behind a health check

Daniel BaeOriginally published

SecurityHack The BoxActive Directory

A health-check destination looked like ordinary telemetry. In Ghostlink it determined where a Windows service would send an authenticated request.

Who may change a destination?

The MQTT broker accepted anonymous clients. It exposed internal information to them and accepted changes to the destination used by the health checker. The checker ran as a domain service account and offered its default Windows credentials when contacting that destination. I would give subscribers and publishers separate topic permissions, require authentication for both, restrict destinations to approved services and configure the client’s authentication explicitly. A record of destination changes would make an unexpected outbound authentication much easier to investigate.

Encrypted files and authorized reads

The file-sharing application returned encrypted bytes for legitimate uploads. Yet the download handler also returned a readable operating-system file from outside the attachment directory. Even its response filename carried the usual encrypted-file suffix. The contents of the response established what the handler had actually opened.

Resolve a server-owned attachment identifier to a canonical path inside the storage directory, so the check and the file open act on the same value. Run the file service under a dedicated account with a limited view of the filesystem. The lab established that the file service could read its Windows account’s user registry hive. That is a concrete privacy exposure. An incident review should inventory the data available to the service identity, including material outside the attachment store.

Independent service checks

Gogs 0.13.3 also needed the release containing its repository symlink-write fix, 0.13.4 (CVE-2025-8110). Constraining the Git service account and keeping its credentials separate from directory accounts would limit the reach of a future storage mistake.

The certificate authority had a separate authentication exposure: its RPC enrollment interface did not enforce encryption for requests. SMB signing on the host did not cover that interface. I would require protected certificate-enrollment requests, confirm on the authority itself that the setting is in force, review enrollment permissions and examine where NTLM authentication remains necessary. Enrollment records can help determine which identities received certificates during a suspected incident.