exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Snorby 2.6.2 Cross Site Scripting

Snorby 2.6.2 Cross Site Scripting
Posted Jul 3, 2015
Authored by Federico Fazzi

Snorby version 2.6.2 suffers from a cross site scripting vulnerability.

tags | exploit, xss
SHA-256 | 94c15120b89c9cb6d9e68b41fcad99033963277c4065ef72edc9c41bc5c24e6d

Snorby 2.6.2 Cross Site Scripting

Change Mirror Download
--------------------------------------------------------
Snorby 2.6.2 - Stored Cross-site Scripting Vulnerability
--------------------------------------------------------

Vendor
------

https://www.snorby.org/


Version
-------

2.6.2


Description
-----------

During my research and testing of new IDS (Intrusion Detection System)
like Suricata, I've
found a Stored Cross-site Scripting (XSS) vulnerability in Snorby (that
I'd like to use as
web user interface for suricata). The vulnerability exists in the module
for adding a new
threat classification model where the user input is not correctly
sanitized before being
saved it on the database or for example the output is not properly
filtered, before its
rendering in the event/menu code, in this way the vector gets executed.


Vulnerability
-------------

The output from the page snorby/app/views/events/_menu.html.erb is not
properly sanitized
before its rendering:

--_menu.html.erb--
<% @classifications.each do |cls| %>
<% if cls.locked && cls.hotkey %>
<%= drop_down_item "#{cls.name}#{cls.shortcut}", '#', nil, {
:class => 'classification', :"data-classification-id" => cls.id.to_i } %>
<% else %>
<%= drop_down_item "#{cls.name}", '#', nil, { :class =>
'classification', :"data-classification-id" => cls.id.to_i } %>
<% end %>
<% end %>
--end--


Mitigation
----------

A simple XSS mitigation on rails could be the usage of the sanitize, for
example the code
below filters the xss vector by removing the onerror attribute from the
image tag:

--_menu.html.erb--
<% @classifications.each do |cls| %>
<% if cls.locked && cls.hotkey %>
<%= drop_down_item "#{sanitize cls.name}#{cls.shortcut}", '#',
nil, { :class => 'classification', :"data-classification-id" =>
cls.id.to_i } %>
<% else %>
<%= drop_down_item "#{sanitize cls.name}", '#', nil, { :class =>
'classification', :"data-classification-id" => cls.id.to_i } %>
<% end %>
<% end %>
--end--


Solution
--------

Update to the latest version on Github.


Disclosure
----------

30-06-2015 – Vendor notification
(https://github.com/Snorby/snorby/issues/377)
30-06-2015 – CVE id requested
01-07-2015 - Vendor acknowledgement
01-07-2015 - Vendor pushed a fix (commit-id:
https://github.com/Snorby/snorby/commit/89d7cbcd3697c8a842f1a61b99e9a78f295798fb)


Credits
-------

Federico Fazzi - federico.fazzi@gmail.com
Web: http://deftcode.ninja

--
Federico Fazzi

Mobile: +39 345 2327231 <tel:+3934%202327231>
http://deftcode.ninja
Login or Register to add favorites

File Archive:

July 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jul 1st
    27 Files
  • 2
    Jul 2nd
    10 Files
  • 3
    Jul 3rd
    35 Files
  • 4
    Jul 4th
    27 Files
  • 5
    Jul 5th
    18 Files
  • 6
    Jul 6th
    0 Files
  • 7
    Jul 7th
    0 Files
  • 8
    Jul 8th
    28 Files
  • 9
    Jul 9th
    44 Files
  • 10
    Jul 10th
    24 Files
  • 11
    Jul 11th
    25 Files
  • 12
    Jul 12th
    11 Files
  • 13
    Jul 13th
    0 Files
  • 14
    Jul 14th
    0 Files
  • 15
    Jul 15th
    28 Files
  • 16
    Jul 16th
    6 Files
  • 17
    Jul 17th
    34 Files
  • 18
    Jul 18th
    6 Files
  • 19
    Jul 19th
    34 Files
  • 20
    Jul 20th
    0 Files
  • 21
    Jul 21st
    0 Files
  • 22
    Jul 22nd
    0 Files
  • 23
    Jul 23rd
    0 Files
  • 24
    Jul 24th
    0 Files
  • 25
    Jul 25th
    0 Files
  • 26
    Jul 26th
    0 Files
  • 27
    Jul 27th
    0 Files
  • 28
    Jul 28th
    0 Files
  • 29
    Jul 29th
    0 Files
  • 30
    Jul 30th
    0 Files
  • 31
    Jul 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close