Text retrieved from your clipboard.
There are some JavaScript DOM available to access the users clip board data. If a webpage can access that, it can use it for any other purposes.
One can easily write something to search through the collected data and use it anywhere they want. Try copying anything, and then hitting this page, you will see the copied text on screen here.
:: COPIED TEXT ::
:: END COPIED TEXT ::
If you do not see anything above, that means the borwser security is already taking care of the clip board data access.
The code block I used for this is
function getClipData()
{
var content = clipboardData.getData('Text');
if (content!=null)
{
document.write(content);
}
else
{
document.write("No data in clipboard");
}
}
If under browser security settings menu, the "Paste actions via script" is disabled, we do not see the text using the script above.
0 comments:
Post a Comment