paullangtree / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
2 stars 0 forks source link

IPv4 mapped IPv6 should be anonymize as IPv4 #796

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Name of affected component: Core Reporting API

Issue summary:
IPv4 mapped IPv6(::ffff:123.123.123.123) equal to an IPv4 (123.123.123.123) but 
anonymized to (::)

Steps to reproduce issue:
1. $ curl 
"https://www.google-analytics.com/debug/collect?v=1&dp=/index.html&tid=UA-123456
-1&cid=xxxx&uip=::ffff:123.123.123.123";
2. See Response _anon_uip=::"

3. $ curl 
"https://www.google-analytics.com/debug/collect?v=1&dp=/index.html&tid=UA-123456
-1&cid=xxxx&uip=123.123.123.123";
4. See Response _anon_uip=123.123.123.0"

Expected output:
IPv4 mapped IPv6(::ffff:123.123.123.123) should be anonymized to 
_anon_uip=123.123.123.0

Actual results:
IPv4 mapped IPv6(::ffff:123.123.123.123) is anonymized to _anon_uip=::

Notes:
IPv4 mapped IPv6 is always be seen if you listen port with param: ipv6only=off

Original issue reported on code.google.com by Daniel65...@gmail.com on 20 Nov 2015 at 2:52