This issue has been migrated from Redmine: https://dev.icinga.com/issues/5346
Created by ricardo on 2013-12-16 20:06:13 +00:00
Status: Resolved (closed on 2013-12-30 16:53:50 +00:00)
Target Version: 1.11
Last Update: 2014-12-08 09:21:45 +00:00 (in Redmine)
Icinga Version: 1.10.2
OS Version: any
this is a follow up to #5250
Answer from "cve-assign at mitre.org"
Because one report mentions CSRF,
our expectation is that some type of CSRF impact would
remain even after the buffer overflows were fixed.
We will fix the problem with these prevention suggestions. (https://www.owasp.org/index.php/Cross-Site\_Request\_Forgery\_(CSRF)\_Prevention\_Cheat\_Sheet#CSRF\_Prevention\_without\_a\_Synchronizer\_Token)
As Classic-UI is stateless, we will add a check for submitted commands and the HTTP Referrer header and/or Origin header if present.
2013-12-19 16:56:58 +00:00 by ricardo bdf8b99
classic-ui: fix vulnerability against CSRF attacks CVE-2013-7107 #5346
This is the fix for CVE-2013-7107. From now on the HTTP referer gets
checked if the request of cmd.cgi actually comes from cmd.cgi.
Otherwise the request will be rejected and the user be notified if
possible. Also a new cgi.cfg option "disable_cmd_cgi_csrf_protection"
got added to disable the protection and allow external programs to
2013-12-23 17:13:45 +00:00 by ricardo acb6271
classic-ui: add change entry in Changelog #5346
2013-12-23 17:17:26 +00:00 by ricardo 6df4f60
Merge branch 'fix/vulnerability-against-CSRF-attacks-5346' into next
2014-01-03 21:48:24 +00:00 by ricardo 4673556
classic-ui: added new config option to config.cgi #5346
Updated by ricardo on 2013-12-23 16:34:30 +00:00
fix in current "fix/vulnerability-against-CSRF-attacks-5346"
THIS ADDS A NEW CGI.CFG OPTION
As it adds a new configuration option and also would break compatibility with current Nagstamon and co installations it will be upstream only from 1.11 on.
# DISABLE CMD CGI CSRF PROTECTION
# This option disables the protection against CSRF attacks
# (Cross-Site Request Forgery). Use this option only if you are
# using external programs (like Nagstamon) which access
# cmd.cgi directly to submit commands. By default the submitted
# command (via external program) will be rejected.
# The default is 0 (protection is on).
Also added patches for
Updated by ricardo on 2013-12-30 16:53:50 +00:00
Applied in changeset icinga-core:6df4f60d166e826815d7cfda6697744c921b840f.
Updated by mfriedrich on 2014-12-08 09:21:45 +00:00