swat: Use X-Frame-Options header to avoid clickjacking
commit71225948a249f079120282740fcc39fd6faa880e
authorKai Blin <kai@samba.org>
Fri, 18 Jan 2013 22:11:07 +0000 (18 23:11 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 29 Jan 2013 08:48:08 +0000 (29 09:48 +0100)
tree5b950ae37dfa9068fe08d4401e8bd42b63d87b51
parent184d5ab26a553ca7ef3f529e90e4dd8c9aded75d
swat: Use X-Frame-Options header to avoid clickjacking

Jann Horn reported a potential clickjacking vulnerability in SWAT where
the SWAT page could be embedded into an attacker's page using a frame or
iframe and then used to trick the user to change Samba settings.

Avoid this by telling the browser to refuse the frame embedding via the
X-Frame-Options: DENY header.

Signed-off-by: Kai Blin <kai@samba.org>
Fix bug #9576 - CVE-2013-0213: Clickjacking issue in SWAT.
source3/web/swat.c