PAC files are generally distributed automatically at logon with the location dictated via DHCP or DNS using the Web Proxy Auto-Discovery or WPAD Protocol.
WPAD is auto-enabled by default on Microsoft Windows systems and within Internet Explorer. It’s also supported on Linux, OSX, Mozilla’s Firefox, Google Chrome and Apple’s Safari.
The technology is commonly used by many organisations in order to manage users web browsing traffic and access.
The research revealed that by manipulating the logic inside the FindProxyForURL function a threat actor could access the users URLs and extract them for their own purposes.
Amit Klein, VP of security research at Safebreach, and Itzik Kotler, the CEO, will share more details of the vulnerability at next week’s Black Hat conference in Las Vegas, Nevada. It’s also understood that the company will also release a proof-of-concept piece of malware to accompany the discovery.
In an interview with SecurityWeek, Kotler claims that there are 2 attack methods for this particular vulnerability.
The first involves using malware to attack the affected system and drop the proxy.pac file, the second employs a man-in-the-middle (MitM) attack to hijack WPAD communications, allowing the attacker to direct the victim’s traffic to their own proxy, stealing data such as HTTP URLs which could then be used for stealing access into the user sessions, bypassing authentication mechanisms.
The researchers also reported that although data exfiltration may be the primary motive for attackers using this hack, the vulnerability could also be used to launch denial of service (DoS) attacks.
If a number of devices were infected with such malware their Internet settings could be reconfigured to target addresses and ports in order to overwhelm a particular server’s resources. This method could also be employed on a local level in order to manipulate URLs of the infected machine, possibly redirecting the users web surfing to avoid update by antivirus or to another compromised or malicious resource which could be used to drive by download additional malicious content or malware.
The danger with this manner of exploit is that it has the potential to affect a wide range of operating systems and browsers, as well as any other application that uses a proxy configuration file.