Using a malicious PAC file, and then using exfiltration methods in the PAC function FindProxyForURL() enables the attacker to expose full https URLs.
This is a security issue since https URLs may contain sensitive information in the URL authentication part (user:password@host), and in the path and the query (e.g. access tokens).
This attack can be carried out remotely (over the LAN) since proxy settings allow âDetect Proxy Configuration Automaticallyâ. This setting uses WPAD to retrieve the PAC file, and an attacker who has access to the victimâs LAN can interfere with the WPAD protocols (DHCP/DNS+HTTP) and inject his/her own malicious PAC instead of the legitimate one