C Board  

Go Back   C Board > Community Boards > General Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 11-03-2008, 08:04 AM   #1
and the hat of copycat
 
stevesmithx's Avatar
 
Join Date: Sep 2007
Posts: 417
Clipboard hijack

DISCLAIMER:
The following link hijacks your clipboard.However you can change the content of the clipboard by closing the page.

http://garyc.mooo.com:3232/rr/

Normally I have seen websites that are intrusive by opening popups and changing the
homepage.
But this one has gone one-level up by hijacking the clipboard.(although done to amuse the visitor).

I don't have a clue how they do this but I guess it may have something to do with "invisible" flash that loads on that page.
Imagine what would happen if the reverse is also possible?(If the contents of the clipboard can be sent to the site on visiting the site.(esp. if you have sensitive info in the clipboard))
Is the internet becoming more insecure these days?

Edit:
eeks!It does seem to be possible to do the above:
http://www.knowledgebase-script.com/...ticle-421.html
__________________
Not everything that can be counted counts, and not everything that counts can be counted
- Albert Einstein.


No programming language is perfect. There is not even a single best language; there are only languages well suited or perhaps poorly suited for particular purposes.
- Herbert Mayer

Last edited by stevesmithx; 11-03-2008 at 08:22 AM.
stevesmithx is offline   Reply With Quote
Old 11-03-2008, 11:31 AM   #2
MENTAL DETECTOR
 
whiteflags's Avatar
 
Join Date: Apr 2006
Location: United States
Posts: 3,283
The preconceived notion that the internet was secure is untrue, particularly because of the people using it as always. In the beginning it was rather amazing it worked and everyone basked in it. Only download content (particularly objects, activex stuff and scripts) from sites that you trust, but misfortune can still happen.
__________________
<Niggawatts> Writing is both mechanical and organic
<Niggawatts> It's like a cyborg dragon.
<Niggawatts> Writing is like a cyborg dragon.
whiteflags is offline   Reply With Quote
Old 11-03-2008, 01:14 PM   #3
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,657
Firefox + flashblock + noscript

[ ] Yes, I'd like to download any piece of content-free crap which has no clear and present use.
Attached Images
 
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.

Salem is offline   Reply With Quote
Old 11-04-2008, 05:02 PM   #4
Unregistered User
 
Yarin's Avatar
 
Join Date: Jul 2007
Posts: 981
Quote:
Originally Posted by stevesmithx View Post
Is the internet becoming more insecure these days?
Of course, anything that gets more complicated also gets more insecure...
Just look at Vista.
__________________
May the Source be with you.
Yarin is offline   Reply With Quote
Old 11-04-2008, 05:19 PM   #5
Malum in se
 
abachler's Avatar
 
Join Date: Apr 2007
Posts: 3,188
Quote:
Originally Posted by Yarin View Post
Of course, anything that gets more complicated also gets more insecure...
Just look at Vista.
or women <duck>...
__________________
Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.
abachler is offline   Reply With Quote
Old 11-04-2008, 05:28 PM   #6
Dae
Deprecated
 
Dae's Avatar
 
Join Date: Oct 2004
Location: Canada
Posts: 1,032
It's not encrypted.

Code:
function onEnterFrame()
{
    System.setClipboard(strings.join("\r\n") + "\r" + "\n" + "\r" + "\n");
} // End of the function

var strings = ["We\'re no strangers to love", 
"You know the rules and so do I", 
"A full commitment\'s what I\'m thinking of", 
"You wouldn\'t get this from any other guy", 
"I just wanna tell you how I\'m feeling", 
"Gotta make you understand", 
"Never gonna give you up", 
"Never gonna let you down", 
"Never gonna run around and desert you", 
"Never gonna make you cry", 
"Never gonna say goodbye", 
"Never gonna tell a lie and hurt you"];

var pointer = 0;
Quote:
Originally Posted by stevesmithx View Post
Is the internet becoming more insecure these days?
The internet's security isn't changing. This stuff has existed for years. Any major insecurities Adobe patches up immediately (the only problem with that is some people run outdated Flash players). MSIE gets tougher on phishing (I would know -wink-). Firefox gets tougher on everything (MSIE hides flash HTTP calls, Firefox doesn't). Plugins are developed to solve these problems (flashblock). We do however discover more bugs as time goes on, obviously. If you've tried to exploit Flash or AJAX, then you would now they are very secure. There's only a few exploits, one of which I'm not telling (only works well on MSIE anyway).
__________________
Warning: Have doubt in anything I post.

GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

Last edited by Dae; 11-04-2008 at 05:38 PM.
Dae is offline   Reply With Quote
Old 11-04-2008, 06:52 PM   #7
Banned
 
master5001's Avatar
 
Join Date: Aug 2001
Location: Visalia, CA, USA
Posts: 3,699
Only a retard uses MSIE anyway. If you would like I will write an unnecessarily long essay to back up what I just said. I don't care who gets their feelings hurt because their myspace looks bomb on IE. It is true (I also don't care who I injured with that statement either )
master5001 is offline   Reply With Quote
Old 11-04-2008, 06:55 PM   #8
Dae
Deprecated
 
Dae's Avatar
 
Join Date: Oct 2004
Location: Canada
Posts: 1,032
I doubt many programmers use MSIE (Yay!). That includes most of this forum. (Woot!) I found only 30% of my random visitors use MSIE. (Chaching!) MySpacers are definitely big offenders. (WTF!)

Edit: Vrooooooom!
__________________
Warning: Have doubt in anything I post.

GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

Last edited by Dae; 11-04-2008 at 07:00 PM.
Dae is offline   Reply With Quote
Old 11-05-2008, 01:09 PM   #9
Banned
 
master5001's Avatar
 
Join Date: Aug 2001
Location: Visalia, CA, USA
Posts: 3,699
I am noticing a big shift towards linux lately. That is definitely a good thing. It is good to see Microsoft's grasp on the industry letting loose.
master5001 is offline   Reply With Quote
Old 11-06-2008, 06:34 AM   #10
Reverse Engineer
 
maxorator's Avatar
 
Join Date: Aug 2005
Location: Estonia
Posts: 2,258
It doesn't hijack anything... it just copies stuff to the clipboard with an interval. It's totally safe.
__________________
The duck is irrelevant to my point.
maxorator is offline   Reply With Quote
Old 11-07-2008, 02:31 AM   #11
and the hat of copycat
 
stevesmithx's Avatar
 
Join Date: Sep 2007
Posts: 417
Thanks all for your replies.
@Salem
Thanks for the info about those extensions.Been using firefox for a long time with popular extensions sans the two you mentioned.

@DAE
Quote:
It's not encrypted.

Code:
Code:
function onEnterFrame()
{
    System.setClipboard(strings.join("\r\n") + "\r" + "\n" + "\r" + "\n");
} // End of the function

var strings = ["We\'re no strangers to love", 
"You know the rules and so do I", 
"A full commitment\'s what I\'m thinking of", 
"You wouldn\'t get this from any other guy", 
"I just wanna tell you how I\'m feeling", 
"Gotta make you understand", 
"Never gonna give you up", 
"Never gonna let you down", 
"Never gonna run around and desert you", 
"Never gonna make you cry", 
"Never gonna say goodbye", 
"Never gonna tell a lie and hurt you"];

var pointer = 0;
How did you see the code?.I can't see a thing on the page source.
I thought the code was inside that flash component and NOT part of the javascript.

Quote:
It doesn't hijack anything... it just copies stuff to the clipboard with an interval. It's totally safe.
It does that without user's permission.And after you leave the page open you can't copy
anything else on the clipboard.I think that is intrusive and too much of a "functionality" for a web page.I totally agree that it is safe but not when done in the reverse.
__________________
Not everything that can be counted counts, and not everything that counts can be counted
- Albert Einstein.


No programming language is perfect. There is not even a single best language; there are only languages well suited or perhaps poorly suited for particular purposes.
- Herbert Mayer
stevesmithx is offline   Reply With Quote
Old 11-07-2008, 06:48 AM   #12
Jack of many languages
 
Dino's Avatar
 
Join Date: Nov 2007
Location: Katy, Texas
Posts: 2,070
IE has a setting to disallow javascript access to the Clipboard.
__________________
Mac and Windows cross platform programmer. Ruby lover.
Dino is offline   Reply With Quote
Old 11-07-2008, 08:22 AM   #13
Reverse Engineer
 
maxorator's Avatar
 
Join Date: Aug 2005
Location: Estonia
Posts: 2,258
Quote:
Originally Posted by Dino View Post
IE has a setting to disallow javascript access to the Clipboard.
It's not javascript - it's Flash.

@stevesmithx
You can't possibly support removing the clipboard functionality from Flash. It is an essential feature. This problem is another one of those "drive people mad with safe little annoying things". The reality is that intrusive sites simply aren't used and lose their market share.

Didn't you know you can simply decompile Flash files? And ActionScript's syntax isn't as close to Javascript's syntax as people tend to think.
__________________
The duck is irrelevant to my point.
maxorator is offline   Reply With Quote
Old 11-07-2008, 08:40 AM   #14
Jack of many languages
 
Dino's Avatar
 
Join Date: Nov 2007
Location: Katy, Texas
Posts: 2,070
Well, that explains it - it certainly looked like javascript.
__________________
Mac and Windows cross platform programmer. Ruby lover.
Dino is offline   Reply With Quote
Old 11-07-2008, 08:48 AM   #15
Super Moderator
 
Join Date: Sep 2001
Posts: 4,746
Quote:
And ActionScript's syntax isn't as close to Javascript's syntax as people tend to think.
They're both based on ECMA - so it's kind of like comparing JavaScript and C#.

I agree with maxorator - in the apps we've made at work we use that feature - and it rounds out the functionality of a webapp quite well. I don't think it's inherently unsafe at all - if people are worried about it, they should by all means block it as mentioned above, but it really can't do any harm to your system. You just shouldn't visit sites if you know they're dumb - that's the only site I've heard of doing that.

Lots of websites do things without your permission - if you were to disable all of them, you wouldn't have a very useful internet experience.
sean is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
copying to clipboard bballzone Windows Programming 24 09-30-2004 03:24 PM
Clipboard and Custom Types McClamm C# Programming 1 09-16-2004 04:43 PM
Clipboard Modifier Korhedron Windows Programming 2 01-03-2004 02:32 PM
Manipulating the Windows Clipboard Johno Windows Programming 2 10-01-2002 09:37 AM
OLE Clipboard :: Win32 API vs. MFC kuphryn Windows Programming 3 08-11-2002 05:57 PM


All times are GMT -6. The time now is 12:40 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22