Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Prevent Session Hijack ?

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
punkid
Apprentice
Apprentice
User avatar
Posts: 215
Joined: Sat Dec 18, 2004 8:23 am
Location: offline

Prevent Session Hijack ?

  • Quote

Post by punkid » Fri Dec 07, 2007 4:19 pm

Hi all,
Yesterday I found my internet connection got session hijacked (MITM), it keeps injecting the spam script into my browser webpage. Here's the screenshot

I've read some documents about session hijack, such as this one:
Theft On The Web: Prevent Session Hijacking

But still i'm quite n00b about networking security, so is there anyway to prevent the session hijack attack before my ISP's slow response ?

Best Regards
My Blog | Latest Screenshot
Top
sundialsvc4
Guru
Guru
Posts: 436
Joined: Thu Nov 10, 2005 12:50 am

  • Quote

Post by sundialsvc4 » Sun Dec 09, 2007 12:59 am

Well... it's a bit hard to determine, from this screen shot, exactly what did happen -- and if your computer actually had anything to do with it. It could be that the nefarious content is simply being served by whatever host is running that site.

Firefox does have some very good spam-killing plugins which will help you to shut-down requests like these.

This particular article is one that has been circulating in various forms for quite some time now, and I'm not sure it is really "aging" very well at all. The bottom line for you, as a web "endpoint," is to simply make sure that you have done all of the things that you can do from your position -- as an endpoint; as a would-be requester and consumer of whatever web content you seek.

First question: does the unwanted content appear now, while you are reading this? Since I most-assuredly have not slipped a "mickey" into this post, if you don't see the garbage while you are looking at this posting right now (assuming that you have no other Firefox windows or tabs open), then the garbage that you are seeing is simply clever spam. And you react to it by filtering it out as aforementioned.
Top
punkid
Apprentice
Apprentice
User avatar
Posts: 215
Joined: Sat Dec 18, 2004 8:23 am
Location: offline

  • Quote

Post by punkid » Sun Dec 09, 2007 4:25 am

Hi sundialsvc4, i can ensure that the nefarious content isnt served by that host, as many other sites are also get contaminated, sometimes even my google reader (not https secured).

The spam isnt around the whole web all the time, sometimes it appears, sometimes it doesnt. When i was reading this post, it didnt. Then i opened a new tab, switched to another legal site, it appeared again.

What i'm doing now is to reject both of the incoming and outgoing requests by iptables. But i'm wondering is there any effective way to prevent the data packet being observed by the man in the middle?
My Blog | Latest Screenshot
Top
bunder
Bodhisattva
Bodhisattva
Posts: 5956
Joined: Sat Apr 10, 2004 5:13 am

  • Quote

Post by bunder » Sun Dec 09, 2007 5:36 am

could it be your ISP injecting the ads? i've been reading articles of some ISP's doing just that. :?
Neddyseagoon wrote:The problem with leaving is that you can only do it once and it reduces your influence.
banned from #gentoo since sept 2017
Top
punkid
Apprentice
Apprentice
User avatar
Posts: 215
Joined: Sat Dec 18, 2004 8:23 am
Location: offline

  • Quote

Post by punkid » Sun Dec 09, 2007 6:37 am

After contacted the ISP service, i was told that they were never gonna do these. But when i was trying to ask 'em to have a check on this issue, they kept asking me those stupid questions like 'Does your system get contaminated by viruses' or 'Have you updated your antivirus software to the latest version', it was ignorant that they said they didnt have any obligation if there was a session hijack b/w the connections and nothing they could help by far.
My Blog | Latest Screenshot
Top
bunder
Bodhisattva
Bodhisattva
Posts: 5956
Joined: Sat Apr 10, 2004 5:13 am

  • Quote

Post by bunder » Sun Dec 09, 2007 6:46 am

does it happen to other pc's on your LAN?
Neddyseagoon wrote:The problem with leaving is that you can only do it once and it reduces your influence.
banned from #gentoo since sept 2017
Top
punkid
Apprentice
Apprentice
User avatar
Posts: 215
Joined: Sat Dec 18, 2004 8:23 am
Location: offline

  • Quote

Post by punkid » Sun Dec 09, 2007 6:58 am

Yes, it happens to many other computers.
I have confirmed it was not the problem of the OS, the viruses or the DNS.
My Blog | Latest Screenshot
Top
bunder
Bodhisattva
Bodhisattva
Posts: 5956
Joined: Sat Apr 10, 2004 5:13 am

  • Quote

Post by bunder » Sun Dec 09, 2007 7:23 am

if you swap out your router, does it still happen? if so, then it is indeed your isp, or a peering along the way... or perhaps the great chinese firewall. :wink: :lol:
Neddyseagoon wrote:The problem with leaving is that you can only do it once and it reduces your influence.
banned from #gentoo since sept 2017
Top
punkid
Apprentice
Apprentice
User avatar
Posts: 215
Joined: Sat Dec 18, 2004 8:23 am
Location: offline

  • Quote

Post by punkid » Sun Dec 09, 2007 8:02 am

I'm using ADSL connection, which doesnt require a router.

Lets go back to the point, if it is a peering along the way which intercepts the data packets from the client side, and replies with fake packets. Is there any way to secure my data packets that guarantees the packets wont be intercepted by the third one?
My Blog | Latest Screenshot
Top
bunder
Bodhisattva
Bodhisattva
Posts: 5956
Joined: Sat Apr 10, 2004 5:13 am

  • Quote

Post by bunder » Sun Dec 09, 2007 8:13 am

looks like you're not alone...

http://wtanaka.com/node/62

still trying to see if its blockable.

edit: if its javascript they're injecting... can you use firefox and flashblock? perhaps along with adblock and filterset.g updater?

double edit: oh god, now we're doing it... :cry:

http://www.cbc.ca/technology/story/2007 ... ogers.html
Last edited by bunder on Wed Dec 12, 2007 10:54 am, edited 1 time in total.
Neddyseagoon wrote:The problem with leaving is that you can only do it once and it reduces your influence.
banned from #gentoo since sept 2017
Top
punkid
Apprentice
Apprentice
User avatar
Posts: 215
Joined: Sat Dec 18, 2004 8:23 am
Location: offline

  • Quote

Post by punkid » Sun Dec 09, 2007 9:02 am

Hmm... the noscript or adblock doesnt help as the injection is directly from the data packets. If i block the script, it also prevents the sites from loading, since the site pages are <iframe>d to be load by the script.

There's no way that i can secure the data packets so that the attackers cannot intercept 'em and reply with fake ones? I think that's the best way to prevent the injection so far from my side as an endpoint :cry:
My Blog | Latest Screenshot
Top
Paralox
n00b
n00b
Posts: 14
Joined: Tue Jul 06, 2004 6:41 am
Location: NYC
Contact:
Contact Paralox
Website

  • Quote

Post by Paralox » Sun Dec 09, 2007 7:16 pm

punkid wrote:Hmm... the noscript or adblock doesnt help as the injection is directly from the data packets. If i block the script, it also prevents the sites from loading, since the site pages are <iframe>d to be load by the script.

There's no way that i can secure the data packets so that the attackers cannot intercept 'em and reply with fake ones? I think that's the best way to prevent the injection so far from my side as an endpoint :cry:
Of course the simplest solution would be to use an external secured proxy server for all of your web traffic.
I would recommend a service like anonymizer.

There is no way that ads could be injected into that.
Top
Post Reply

12 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy