A flaw was found in libproxy. When Proxy Auto-Configuration (PAC) or Web Proxy Auto-Discovery (WPAD) is enabled, libproxy holds an internal lock while synchronously downloading and executing PAC scripts. An attacker able to influence the proxy configuration can serve an unresponsive connection or a looping script, causing concurrent proxy resolution requests within the application to stall and leading to a denial of service (DoS).
Disable dynamic Proxy Auto-Configuration (PAC) and Web Proxy Auto-Discovery (WPAD) in favor of static proxy configurations or direct connections:
- In desktop environments using GNOME proxy settings, set the proxy mode to 'none' or 'manual':
gsettings set org.gnome.system.proxy mode 'none'
Or configure manual proxy settings:
gsettings set org.gnome.system.proxy mode 'manual'
-
In application-specific configurations and command-line environments, avoid specifying PAC URLs and instead configure static proxy variables (such as http_proxy, https_proxy, and all_proxy).
-
If PAC scripts are required, restrict retrieval to trusted internal hosts and ensure that PAC scripts are reviewed and validated before deployment. This reduces the risk of exploitation but does not fully mitigate the vulnerability, as slow PAC responses or non-terminating PAC scripts may still block concurrent proxy lookups.
Warning: Modifying proxy configuration settings may require restarting running desktop sessions or affected network applications for changes to take effect. Relying on static proxy definitions disables dynamic proxy routing rules across different network environments.