PXE Boot Exposes Credentials or Images
Network boot services hand operating system images and deployment settings to any device that asks, and these often contain domain credentials and other secrets.
| Severity | High |
| CVSS 3.1 | 7.1 CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N Open in the calculator |
| CVSS 4.0 | 7.1 CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N Open in the calculator |
| CWE | CWE-260: Password in Configuration File |
| OWASP Top 10 | A02:2025 Security Misconfiguration |
| MITRE ATT&CK | T1552.001 Credentials In Files, T1078.002 Domain Accounts |
| Category | Information Disclosure |
Description
Preboot Execution Environment (PXE) booting lets a computer load an operating system installer over the network, using DHCP to find a boot server and TFTP to download the boot files. Deployment platforms such as Microsoft Configuration Manager (SCCM), Microsoft Deployment Toolkit (MDT) with Windows Deployment Services (WDS), and comparable tools on other platforms use it to build machines automatically. To do so, the boot media and deployment settings often contain credentials: the Configuration Manager network access account and task sequence variables, an account for the deployment share in MDT's Bootstrap.ini or CustomSettings.ini, and local administrator or domain join passwords in unattended setup files.
Where these services answer any device on the network without approval or a strong PXE password, an attacker on the internal network, without any credentials, can boot a virtual machine, or run a tool that sends PXE requests, retrieve the boot files and extract domain credentials from them. Tools such as PXEThief automate this against Configuration Manager, recovering the media variables file and the policies it gives access to. Where a PXE password is set, the encrypted media variables file can still be taken away and the password guessed offline, so a weak password gives little protection.
The network access account and task sequence accounts are often given more rights than they need, and are sometimes members of administrative groups, so the attacker may gain broad access to systems or to the domain. Access to the deployment share can also let the attacker read the images that will be installed on new computers and, where the share is writable, alter them to plant malicious code across the estate, and the images may contain local administrator passwords shared across many machines.
The weakness is identified by observing PXE offers on the network or sending a PXE request from the testing position, retrieving the boot files over TFTP, and examining them, and any deployment shares they point to, for credentials.
Remediation
- For Configuration Manager, reduce reliance on the network access account, which is no longer required in many scenarios when Enhanced HTTP or PKI certificates are used; where it remains, give it only read access to content and no interactive or administrative rights. Do not store passwords in task sequence or collection variables.
- Set a strong, randomly generated PXE password on PXE-enabled distribution points, and disable unknown computer support where it is not needed, so that only devices already known to Configuration Manager receive a deployment.
- For MDT and WDS, remove credentials from
Bootstrap.ini,CustomSettings.iniand unattended setup files so that technicians enter them at build time, and give any deployment share account read-only access to that share and nothing more. - Where a domain join account is needed, use a dedicated account that can only join computers to a specific organisational unit, and give each computer a unique local administrator password after build, for example with Windows LAPS.
- Offer PXE and TFTP only on a dedicated build network or VLAN, not on user networks.
- Change the passwords of every account found in boot media or deployment configuration.
Confirm the fix by repeating the PXE request from user networks and checking that no boot files are served, or that the files obtained contain no usable credentials.
References
Add This Finding to Your Library
In Pental this write-up is in Settings, Library. Add to my library copies it into your own, rated in your firm's CVSS version, ready to put in your own words.
Free trialYour trial starts when your portal goes live, not when you sign up, so the time you spend setting up does not count. · No card required
Only need the reporting? Our reporting tool is free and open source, with the same library.