Issue metadata
Sign in to add a comment
|
Private IP address can be found using WebRTC |
||||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; CrOS x86_64 10323.67.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.209 Safari/537.36 Steps to reproduce the problem: 1. Visit http://whatismyip.com (tested on Android) 2. "Your Local IP is: 192.168.100.101" What is the expected behavior? Private IP addresses should not be leaked when browsing the web. What went wrong? Private IP address is available to any site that requests it. Did this work before? N/A Chrome version: 65.0.3325.209 Channel: stable OS Version: 10323.67.0 Flash Version:
,
Apr 20 2018
Presumably dupe of Issue 768706.
,
Apr 20 2018
Yup.
function checkLocal() {
window.RTCPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection; //compatibility for firefox and chrome
var pc = new RTCPeerConnection({iceServers: []}), noop = function () {
};
pc.createDataChannel(""); //create a bogus data channel
pc.createOffer(pc.setLocalDescription.bind(pc), noop); // create offer and set local description
pc.onicecandidate = function (ice) { //listen for candidate events
if (!ice || !ice.candidate || !ice.candidate.candidate) return;
var myIP = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/.exec(ice.candidate.candidate)[1];
jQuery(document).ready(function () {
jQuery("#local-ip").append("<li class=\"list-group-item\">Your Local IP is: " + myIP + "</li>");
jQuery("#local-ip").show("slow");
});
pc.onicecandidate = noop;
};
Blocking this on Desktop requires a Chrome extension. Blocking it on Android presently isn't possible as far as I know.
,
Apr 20 2018
battre@ -- this seems like a duplicate of Issue 333752 . Please feel free to re-open if it is not.
,
Apr 23 2018
,
Apr 23 2018
I don't see anything sensitive here. Removing view restriction.
,
Jul 28
This bug has been closed for more than 14 weeks. Removing security view restrictions. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by kerrnel@chromium.org
, Apr 19 2018