Vulnerability in Web-RTC default configuration reveals your real IP address behind a VPN

VPN users are facing a massive security flaw as websites can easily see their home IP-addresses through WebRTC. The vulnerability is limited to supporting browsers such as Firefox and Chrome. Luckily the security hole is relatively easy to fix.



The Snowden revelations have made it clear that online privacy is certainly not a given. Just a few days ago we learned that the Canadian Government tracked visitors of dozens of popular file-sharing sites. As these stories make headlines around the world interest in anonymity services such as VPNs has increased, as even regular Internet users don’t like the idea of being spied on.



Unfortunately, even the best VPN services can't guarantee to be 100% secure. This week a very concerning security flaw revealed that it’s easy to see the real IP-addresses of many VPN users through a WebRTC feature.




The STUN Vulnerabilty and Demo



With a few lines of code websites can make requests to STUN servers and log users’ VPN IP-address and the "hidden" home IP-address, as well as local network addresses.



The vulnerability affects WebRTC-supporting browsers including Firefox and Chrome and appears to be limited to Windows machines.



A STUN vulnerability demo published on GitHub by developer Daniel Roesler allows people to check if they are affected by the security flaw.



IP-address leak - STUN vulnerability reveals your real IP address




STUN Vulnerability Counter-measure



The demo claims that browser plugins can’t block the vulnerability, but luckily this isn’t entirely true. There are several easy fixes available to patch the security hole:

  • Chrome users can install the WebRTC block extension or ScriptSafe, which both reportedly block the vulnerability.

  • Firefox users should be able to block the request with the NoScript addon. Alternatively, they can type "about:config" in the address bar and set the "media.peerconnection.enabled" setting to false.

  • Tunneling the VPN through a router is another fix. One of the best way to be protected from WebRTC and similar vulnerabilities is to run the VPN tunnel directly on the router. This allows the user to be connected to a VPN directly via Wi-Fi, leaving no possibility of a rogue script bypassing a software VPN tunnel and finding one’s real IP.




  • STUN Vulnerability Scope



    During our testing Windows users who were connected by way of a VPN router were not vulnerable to WebRTC IP leaks even without any browser fixes.

    This vulnerability affects the default configuration on Linux, Mac OS X, FreeBSD, Ubuntu, Unix... During our tests Windows was not affected.



    While the fixes above are all reported to work, the leak is a reminder that anonymity should never be taken for granted.



    As is often the case with these type of vulnerabilities, VPN and proxy users should regularly check if their connection is secure. This also includes testing against DNS leaks and proxy vulnerabilities.


Get this VPN - Vulnerability in Web-RTC default configuration reveals your real IP address behind a VPN