Archives
- ► 2013 (8)
- ► 2012 (35)
- ► 2011 (157)
- ► 2010 (174)
- ► 2009 (12)
Which topics would you like us to cover more?
Latest comments
-
How to create an application s...
Maybe some of the other posts will help you too: d...
By Bas -
How to create an application s...
Hi Joe! Glad this post and the discussion is helpf...
By Bas -
How to create an application s...
Ok, I think I'm getting my head around it now... t...
By Joe -
How to create an application s...
this is probably the most helpful discussion ive c...
By Joe -
How to shutdown your server wi...
IT didn't work with centos 6
By David -
How to reset you Kindle 3, eve...
Thank you! I was in the middle of listening to a b...
By Madison Woods -
Using a client certificate wit...
Thanks Bas
By betsy -
Using a client certificate wit...
Hi Betsy, No there isn't. Java runs in a virtual m...
By Bas
Latest tweets
| Preventing clickjacking |
| Written by Division by Zero |
| Saturday, 13 February 2010 10:41 |
|
Maybe you heard about clickjacking, maybe you didn't. In short: it's an attack on a web user by using transparancy on frames. The user thinks she/he click on something, but in fact she/he clicks on something else. The user will never know, because the intended action is also executed (or executed if clicked again, or something like that). Here's the original paper by Robert Hansen and Jeremiah Grossman. But what to do about it. Well... there isn't very much that you can do to protect your user. It is possible to prevent you web-application to be loaded in a frame by adding a HTTP header. This prevents clickjacking, but the header has to be supported by the browser the user uses. IE8 supports the X-FRAME-OPTIONS HTTP header and Firefox will if the user installs the NoScript extension. The X-FRAME-OPTION has two possible values: DENY (disallow being loaded in a frame) and SAMEORIGIN (only allow being loaded in a frame if the pages are from the same URI). One way to add the X-FRAME-OPTIONS to your HTTP header is using a HTTP module. Here's an example of this simple module: |
Professionals built the Titanic. Amateurs the ark. - Unknown













