Snorby 2.6.2 - Stored Cross-site Scripting Vulnerability
------------------------------
Vendor
------
https://www.snorby.org/
Version
-------
2.6.2
Description
-----------
Found another Stored Cross-site Scripting (XSS) vulnerability in Snorby.
The vulnerability exists in the module for save a new search 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 saved
searches code,
in this way the vector gets executed.
It not requires Administrative privileges to being executed.
Vulnerability
-------------
The output from the page snorby/app/views/saved_
not properly sanitized before its rendering, especially the variable
'data.title':
--view.html.erb--
$('#title-header').
id="title-header">'+data.
edit)</span>');
--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, preventing
the execution of the malicious javascript code:
--view.html.erb--
$('#title-header').
id="title-header">'+sanitize data.title+'</div><span
class="sub-title">(click to edit)</span>');
--end--
Solution
--------
Update to the latest version on Github.
Disclosure
----------
18-07-2015 – Vendor notification
(https://github.com/Snorby/
18-07-2015 – CVE id requested
21-07-2015 - Vendor acknowledgement
21-07-2015 - Vendor pushed a fix (commit-id:
https://github.com/Snorby/
Komentarų nėra:
Rašyti komentarą