LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-29-2010, 08:10 AM   #1
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Rep: Reputation: 57
Can javascript be crippled so it cannot leak IP?


When using TOR it is recommended that you disable javascript and all other scripts because they can be used to detect your IP, defeating the purpose of TOR.

But there are some sites that simply do not work without javascript.

Is it possible to keep all javascript functionality but disable just the functionality that is used to leak your IP?

Last edited by Ulysses_; 03-29-2010 at 08:19 AM.
 
Old 03-29-2010, 11:41 AM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
unfortunately javascript has nothing to do with identifying your ip, that information is sent with HTTP host headers otherwise the web server wouldn't have a clue as to where to send the reply, in short completely hiding your ip would make it impossible for the webserver to send a reply with the requested information, javascripts that use/show this information are simply getting the info from the HTTP host headers

http://www.php.net/manual/en/reserve...les.server.php
this information might be helpful

Last edited by frieza; 03-29-2010 at 11:44 AM.
 
Old 03-29-2010, 12:25 PM   #3
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Then why does the TOR homepage strongly recommend disabling javascript among others?
 
Old 03-29-2010, 12:26 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by frieza View Post
javascripts that use/show this information are simply getting the info from the HTTP host headers
While not exactly Javascript check out the explanation in the implementation section of http://decloak.net/. There's more than just HTTP host headers.
 
Old 03-29-2010, 01:23 PM   #5
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Blog Entries: 8

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by Ulysses_ View Post
Then why does the TOR homepage strongly recommend disabling javascript among others?
Because some aspects of javascript can be abused (in general), as any tool can be. I don't think javascript is your issue, though. You want to be hidden. You can only hide so much, IMO, but TOR or any proxy should provide the results you want. It won't hide IPs but will utilize an IP that makes it difficult to track YOU.

But, if you're afraid of javascript, use noscript.
 
Old 03-29-2010, 03:38 PM   #6
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
I have noscript already. What if your ADSL router is at http://192.168.2.1 and javascript from a web page attempts to load that page up guessing the name and password, and log in to the router to look up the status page where the adsl ip is shown?
 
Old 03-29-2010, 06:25 PM   #7
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Ulysses_ View Post
I have noscript already. What if your ADSL router is at http://192.168.2.1 and javascript from a web page attempts to load that page up guessing the name and password, and log in to the router to look up the status page where the adsl ip is shown?
FWIW, I would agree that it's completely insane to allow JavaScript (or any kind of executable content) when using Tor. The only exception would be if it's delivered via SSL (HTTPS) from a trusted site, which NoScript lets you specify. As for the attack scenario you've provided here as an example, the ABE component of NoScript would protect against that.
 
Old 03-29-2010, 06:51 PM   #8
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
if you really wanna hide your IP of course there are various proxy sites out there that will allow you to browse websites via their internet connection to mask your ip address, not sure this is what you are looking for but its one way of remaining anonymous
 
Old 03-29-2010, 07:54 PM   #9
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by frieza View Post
if you really wanna hide your IP of course there are various proxy sites out there that will allow you to browse websites via their internet connection to mask your ip address, not sure this is what you are looking for but its one way of remaining anonymous
frieza, he's already using Tor. The question he's asking is with regards to keeping the IP from being revealed by specially-crafted JavaScript, which resides on a completely different OSI layer.
 
1 members found this post helpful.
Old 03-29-2010, 10:18 PM   #10
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
What are you guys' thoughts on filtering this sort of JavaScript on the Privoxy server itself? Could one isolate and strip out the specific JavaScript functions used to grab IP address info?


EDIT: Nevermind, this approach would suck because it wouldn't work when HTTPS is used.

This needs to be done in the browser itself to work right, AFAICT.

Last edited by win32sux; 03-29-2010 at 10:24 PM.
 
Old 03-29-2010, 10:48 PM   #11
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
If you run your browser in an virtual machine, wouldn't that automatically eliminate the IP address information available to any JavaScript, Java, Flash, etc. code regardless of their technique? It would seem to me like it should limit them to the IP address information of the VM guest, which you could make whatever you want. My bloodstream is running low on caffeine so please don't hesitate to smack me upside the head if there's something totally obvious which I've missed.

Last edited by win32sux; 03-29-2010 at 11:50 PM.
 
Old 03-30-2010, 06:30 PM   #12
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
I am already using vmware virtual machines and have disabled all networking on the host, the virtual machine gets connected to the internet through a usb port to the adsl router. So it's just simulating a real computer connected to the adsl router with NAT. Even if javascript gets the ip as if it called ifconfig, it would still be the local ip, not the external ip, right?
 
Old 03-31-2010, 05:23 AM   #13
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by Ulysses_ View Post
Even if javascript gets the ip as if it called ifconfig, it would still be the local ip, not the external ip, right?
Feel free to test it yourself and report back?
 
Old 03-31-2010, 02:26 PM   #14
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
I do not know how to do that.

www.decloak.net does see my external IP as expected, presumably by means other than javascript.

www.decloak.net fails if you go through a free VPN like https://proxify.co.uk.

Last edited by Ulysses_; 03-31-2010 at 02:41 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] I've crippled Gnome... jccar Linux - Newbie 11 07-26-2009 11:38 PM
Crippled by vista? dmaavrigdo Linux - Hardware 13 01-29-2008 05:55 AM
LXer: Memory leak patterns in JavaScript LXer Syndicated Linux News 0 05-04-2007 09:46 PM
Is K3b crippled? General Linux - Software 3 11-18-2005 10:33 AM
my crippled little penguin Goatdemon Linux - General 8 08-22-2002 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration