FOG's host token endpoint can disclose deployment credentials to the local network
FOG's host token endpoint can disclose deployment credentials to the local network
FOG Project automates operating system deployment and can store credentials needed to join machines to Active Directory. CVE-2026-137995 affects versions before 1.6.0.119. The status/hostgetkey.php endpoint returns a host token to an unauthenticated client that supplies a host MAC address. The token can then be presented to service/hostinfo.php to retrieve decrypted Active Directory join credentials and Windows product keys during a deployment window.
The exposure is adjacent rather than internet-wide in the CVE scoring, but local network access is common for an imaging server. A visitor on the provisioning VLAN, a compromised endpoint, or a workload that can reach the FOG web service may be able to enumerate or guess a MAC address. Large organizations also publish hardware inventories and DHCP records that make the identifier less secret.
Replace the host lookup trust decision
A MAC address is an identifier, not authentication. The server should not treat knowledge of a hardware address as proof that the caller is the host being provisioned. Use a short-lived one-time enrollment secret, a client certificate, or another credential bound to the deployment session. If the host is not yet enrolled, issue the token only through a workflow that can verify the initiating operator or the trusted network and record the request.
Patch to 1.6.0.119 or a later fixed release. The vendor has also published a later release containing the change. Confirm the PHP endpoint code on disk because multiple FOG components may be installed from different packages.
Review what could have been exposed
Search web access logs for requests to status/hostgetkey.php and service/hostinfo.php, including successful responses, source addresses, MAC parameters, and user agents. Correlate the requests with DHCP leases and asset inventory to identify the hosts involved.
If an unauthorized request was observed, rotate the Active Directory join account and any Windows product keys or deployment secrets held by FOG. Review domain controller logs for authentication from unexpected computers or source addresses. Check for new machine accounts and group membership changes created after the exposure.
Segment the imaging network
Place the FOG web service on a provisioning network with an explicit allowlist. Do not expose it to general user VLANs or the internet. Restrict access to DHCP, TFTP, image storage, and database services from the same network. Monitor for requests containing MAC addresses that do not match an active lease.
The deployment agent should verify the server certificate and should not accept a token from an unauthenticated HTTP response. Encrypt stored join secrets with a key held outside the database backup. A database dump should not yield plaintext domain credentials.
Limits
The advisory establishes unauthenticated token retrieval and access to decrypted deployment credentials. It does not show that any attacker used this path. The inventory and log review determine whether the organization was exposed, and the response should prioritize the domain account and host secrets that FOG held.