WPAD is a protocol that lets a device automatically discover and configure the correct proxy server for a network without manual setup, by using DHCP or DNS to locate a configuration file called wpad.dat.
WPAD has known security risks: US-CERT warned that attackers could register domains matching leaked WPAD queries and serve proxy configuration files for man-in-the-middle attacks, and advised disabling automatic proxy discovery unless systems are used only on internal networks.
What the wpad.dat File Contains
The file is a proxy auto-configuration (PAC) file: a JavaScript function, FindProxyForURL(url, host), that decides for each request whether to connect directly or through a proxy. It returns a string such as PROXY proxy.example.com:8080; DIRECT. When several options are listed, Firefox uses the leftmost one and moves to the next if it can't connect.
Standards Status
WPAD was never published as an internet standard. The IETF draft that described it was last updated in July 1999 and expired without becoming an RFC.