JavaScript Address Info
The following technique was brought to me by DanBUK. Dan managed to find the internal IP address of the visiting client by establishing a socket between local host and the remote web server. Upon success the socket populates its structure with all kinds of useful stuff among some of which are the internal NATed IP address and the hostname.
The source code can be downloaded from here.
This technique requires Java, however I think that It should be possible to achieve similar result by invoking special ActionScript methods from Flash.
I managed to generalize Dan’s snippet a bit so it works on all platforms that support LiveConnect (firefox, opera). Unfortunately the following POC does not work in IE6 and IE7. However, it is quite easy to circumvent this restriction by packaging a small Java object that can be embedded inside the page that will carry out the attack.
Comments
fyi — when doing some digging, I found this reference to this exact same technique from a while back:
http://www.derkeiler.com/Maili...../0003.html
yes, this technique was presented to me by a guys called Dan. researching further the technique origins showed that it has been known for some time now.