Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Commit

Permalink
Fixed: OTRS does not protect against clickjacking (bug#10374).
Browse files Browse the repository at this point in the history
Conflicts:
	CHANGES.md
	Kernel/Output/HTML/Standard/CustomerHeader.dtl
	Kernel/Output/HTML/Standard/CustomerHeaderSmall.dtl
	Kernel/Output/HTML/Standard/Header.dtl
	Kernel/Output/HTML/Standard/HeaderSmall.dtl
	Kernel/Output/HTML/Standard/Login.dtl
	Kernel/Output/HTML/Standard/PrintHeader.dtl

Conflicts:
	CHANGES.md
	Kernel/Output/HTML/Standard/CustomerHeaderSmall.dtl
	Kernel/Output/HTML/Standard/Login.dtl
  • Loading branch information
mgruner committed Mar 18, 2014
1 parent 3b8409d commit aa6a0a3
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -10,6 +10,7 @@
# --

3.1.21 2014-??-??
- 2014-03-18 Fixed bug#10374 - OTRS does not protect against clickjacking.
- 2014-03-13 Fixed bug#10361 - Incorrect handling of special characters in DynamicFields.
- 2014-02-27 Fixed bug#10309 - mails with an empty return-path header must not trigger auto responses in OTRS.

Expand Down
1 change: 1 addition & 0 deletions Kernel/Output/HTML/Layout.pm
Expand Up @@ -2467,6 +2467,7 @@ sub Attachment {
$Output .= "Pragma: no-cache\n";
}
$Output .= "Content-Length: $Param{Size}\n";
$Output .= "X-Frame-Options: SAMEORIGIN\n";

if ( $Param{Charset} ) {
$Output .= "Content-Type: $Param{ContentType}; charset=$Param{Charset};\n\n";
Expand Down
1 change: 1 addition & 0 deletions Kernel/Output/HTML/Standard/CustomerHeader.dtl
Expand Up @@ -12,6 +12,7 @@
# http headers
Content-Type: text/html; charset=$Env{"UserCharset"};
X-Powered-By: $Config{"Product"} $Config{"Version"} - Open Ticket Request System (http://otrs.org/)
X-Frame-Options: SAMEORIGIN
Expires: Tue, 1 Jan 1980 12:00:00 GMT
Cache-Control: no-cache
Pragma: no-cache
Expand Down
1 change: 1 addition & 0 deletions Kernel/Output/HTML/Standard/Header.dtl
Expand Up @@ -13,6 +13,7 @@
Content-Type: text/html; charset=$Env{"UserCharset"};
Content-Disposition: $Data{"ContentDisposition"}
X-Powered-By: $Config{"Product"} $Config{"Version"} - Open Ticket Request System (http://otrs.org/)
X-Frame-Options: SAMEORIGIN
Expires: Tue, 1 Jan 1980 12:00:00 GMT
Cache-Control: no-cache
Pragma: no-cache
Expand Down
1 change: 1 addition & 0 deletions Kernel/Output/HTML/Standard/HeaderSmall.dtl
Expand Up @@ -12,6 +12,7 @@
# http headers
Content-Type: text/html; charset=$Env{"UserCharset"};
X-Powered-By: $Config{"Product"} $Config{"Version"} - Open Ticket Request System (http://otrs.org/)
X-Frame-Options: SAMEORIGIN
Expires: Tue, 1 Jan 1980 12:00:00 GMT
Cache-Control: no-cache
Pragma: no-cache
Expand Down
1 change: 1 addition & 0 deletions Kernel/Output/HTML/Standard/Login.dtl
Expand Up @@ -12,6 +12,7 @@
# http headers
Content-Type: text/html; charset=$Env{"UserCharset"};
X-Powered-By: $Config{"Product"} $Config{"Version"} - Open Ticket Request System (http://otrs.org)
X-Frame-Options: SAMEORIGIN

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Expand Down
1 change: 1 addition & 0 deletions Kernel/Output/HTML/Standard/PrintHeader.dtl
Expand Up @@ -14,6 +14,7 @@ Content-Type: text/html; charset=$Env{"UserCharset"};
Content-Disposition: $Data{"ContentDisposition"}
X-Powered-By: $Config{"Product"} $Config{"Version"} - Open Ticket Request System (http://otrs.org)
Expires: Tue, 1 Jan 1980 12:00:00 GMT
X-Frame-Options: SAMEORIGIN
Cache-Control: no-cache
Pragma: no-cache

Expand Down

0 comments on commit aa6a0a3

Please sign in to comment.