From bda6923018db2bd92e1d56a0f2bb8214ae13687e Mon Sep 17 00:00:00 2001 From: iglocska Date: Tue, 17 Nov 2015 11:58:56 +0100 Subject: [PATCH] Security fix fixing an XSS issue with the templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - as discovered and reported by Rafael Pablos GarcĂ­a of INCIBE - fixed a reflected XSS for template creator users when viewing a template --- VERSION.json | 2 +- app/View/Elements/side_menu.ctp | 34 ++++++++++++++++----------------- app/View/Templates/view.ctp | 2 +- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/VERSION.json b/VERSION.json index deaf2179f..153574102 100644 --- a/VERSION.json +++ b/VERSION.json @@ -1 +1 @@ -{"major":2, "minor":3, "hotfix":160} +{"major":2, "minor":3, "hotfix":162} diff --git a/app/View/Elements/side_menu.ctp b/app/View/Elements/side_menu.ctp index 1322d46c8..7d471c20b 100755 --- a/app/View/Elements/side_menu.ctp +++ b/app/View/Elements/side_menu.ctp @@ -14,23 +14,23 @@ if ($isAclPublish) $mayPublish = true; } ?> -
  • >View Event
  • -
  • >View Event History
  • +
  • >View Event
  • +
  • >View Event History
  • -
  • >Edit Event
  • +
  • >Edit Event
  • Form->postLink('Delete Event', array('action' => 'delete', $event['Event']['id']), null, __('Are you sure you want to delete # %s?', $event['Event']['id'])); ?>
  • -
  • >Add Attribute
  • -
  • >Add Attachment
  • -
  • >Populate from OpenIOC
  • -
  • >Populate from ThreatConnect
  • +
  • >Add Attribute
  • +
  • >Add Attachment
  • +
  • >Populate from OpenIOC
  • +
  • >Populate from ThreatConnect
  • -
  • Populate From Template
  • +
  • Populate From Template
  • -
  • >Propose Attribute
  • -
  • >Propose Attachment
  • +
  • >Propose Attribute
  • +
  • >Propose Attachment
  • - class="publishButtons">Publish Event - class="publishButtons">Publish (no email) + class="publishButtons">Publish Event + class="publishButtons">Publish (no email) -
  • >Contact Reporter
  • -
  • Download as...
  • +
  • >Contact Reporter
  • +
  • Download as...
  • List Events
  • @@ -130,7 +130,7 @@ case 'admin': if ($menuItem === 'editUser' || $menuItem === 'viewUser'): ?>
  • >Html->link('View User', array('controller' => 'users', 'action' => 'view', 'admin' => true, $id)); ?>
  • -
  • Send Credentials
  • +
  • Send Credentials
  • >Html->link('Edit User', array('controller' => 'users', 'action' => 'edit', 'admin' => true, $id)); ?>
  • Form->postLink('Delete User', array('admin' => true, 'action' => 'delete', $id), null, __('Are you sure you want to delete # %s?', $id));?>
  • @@ -218,9 +218,9 @@ endif; if (($menuItem === 'view' || $menuItem === 'edit')): ?> -
  • >View Template
  • +
  • >View Template
  • -
  • >Edit Template
  • +
  • >Edit Template
  • - +