This is actually a security concern, not an attempt at a hack. I was asked yesterday if it's possible for a page visited to access files that are available locally through the LAN, but not externally.
For example, if I go to a third party page, would it be possible for that page to tell my browser to grab the contents of "http://192.168.0.1/foo.html
", and then post that content back to the external server?
I know it can't be done with a simple ajax request, as the browser prevents that. You can however include external files with a script tag. e.g.
<script type="text" src="http://127.0.0.1/test.html"></script>
will successfully load that local file (if you're running a web server and have that file of course), and include it in the document. That does not however seem accessible as far as I can see.
Is this something that should be a concern, or is it accounted for by the browser?