Skip to main content

Mitigating against clickjacking in Qlik Sense and QlikView, X-FRAME Options in response header

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Andre_Sostizzo
Digital Support
Digital Support

Mitigating against clickjacking in Qlik Sense and QlikView, X-FRAME Options in response header

Last Update:

Nov 14, 2022 6:09:57 AM

Updated By:

Sonja_Bauernfeind

Created date:

Jul 20, 2016 5:21:17 PM

Clickjacking, also known as a "UI redress attack", is when an attacker uses multiple transparent or opaque layers to trick a user into clicking on a button or link on another page when they were intending to click on the top level page. Thus, the attacker is "hijacking" clicks meant for their page and routing them to another page, most likely owned by another application, domain, or both.

Using a similar technique, keystrokes can also be hijacked. With a carefully crafted combination of stylesheets, iframes, and text boxes, a user can be led to believe they are typing in the password to their email or bank account, but are instead typing into an invisible frame controlled by the attacker. (source)


In Qlik Sense and QlikView, using the default setup, it is possible to embed a Qlik Sense site or a QlikView App into an iframe external to the site and, potentially, capture credentials.

The main defence against this potential vulnerability is to set the X-Frame-Options Response Headers in the requests. This governs whether a browser should or should not render a page inside an iFrame.

There are a handful of values that can be configured. The support for those dependent on the web browser, so do investigate the type of X-Frame-Option that you are setting.

 

Qlik Sense

To mitigate against this you need to specify the X-Frame-Options. Possible values are “DENY”, “SAMEORIGIN” or “ALLOW-FROM”. See Clickjacking Defense Cheat Sheet.
 
  1. Open the Qlik Sense Management Console
  2. Navigate to the Virtual Proxy used in the implementation
  3. Click Edit
  4. Select Advanced in the right-hand side menu
  5. Locate Additional response headers 
  6. Add: X-Frame-Options: SAMEORIGIN 
X_Frame_Options.png

 

QlikView

QlikView allows for the use of custom headers (much like Qlik Sense) natively beginning with the 12.30 release.

See QlikView WebServer: Custom HTTP Header.

You can also implement them using IIS if IIS is being used as the web server: Setting Custom HTTP Headers in IIS for QlikView.

 

Related Content

How to allow Qlik Sense to be embedding in an iFrame only from specific websites

 

Environment

QlikView 
Qlik Sense Enterprise on Windows 

Labels (1)
Comments
Luck
Partner - Contributor II
Partner - Contributor II

is there any of the same reference to mitigate against clickjacking in qlikview?

Sonja_Bauernfeind
Digital Support
Digital Support

Hello @Luck 

QlikView allows for the use of custom headers (much like Qlik Sense) natively beginning with the 12.30 release.

See QlikView WebServer: Custom HTTP Header.

You can also implement them using IIS if IIS is being used as the web server: Setting Custom HTTP Headers in IIS for QlikView.

All the best,
Sonja 

jchacko_rxsense
Contributor III
Contributor III

So, if I am understanding this correctly. This setup will add a security where I won't be able to use my Qlik website or a Qlik app in an iFrame which is external to the site.

What should be done for other way around. How to mitigate the same if I want to open a link in a iFrame in my Qlik Sense Mashup?

jchacko_rxsense
Contributor III
Contributor III

@Andre_Sostizzo 

What should be done for other way around.  Is it possible to open a link in a iFrame, in my Qlik Sense Mashup?
Currently I am getting the error

”Refused to display 'https://abc.com' in a frame because it set 'X-Frame-Options' to 'sameorigin'.”

where 'https://abc.com' is the link which I am trying to see through my qlik sense mashup using iFrame.

 

 

Sonja_Bauernfeind
Digital Support
Digital Support

Hello @jchacko_rxsense 

In order to get you the assistance that you need, I would recommend posting about your requirements and what challenges you are facing in our Integration forum

If you, however, require direct assistance on this, our professional services are available to assist you.

All the best,
Sonja 

Version history
Last update:
‎2022-11-14 06:09 AM
Updated by: