Node.Security

Security Audit of Cube

ISGroup SRL performed an automated Code Review (not a real Static Analysis, more a grep-on-steroid) of this NodeJS project in order to identify potential security vulnerabilities. We do not guarantee that all the findings are valid, and for sure there are plenty of false-positives and false-negatives (undetected issues) but it's free and your project could benefit from this security analisys. The following data is also available in JSON format!

Possible Security Issues
Issue Description Line File
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 1 static/cubism.v1.min.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 1 static/d3.v3.min.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 3 static/d3.v3.min.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 420 static/d3.v3.js
Server Side Injection(SSI) - new Function() User controlled data in 'new Function()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 1717 static/d3.v3.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 1832 static/d3.v3.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 1863 static/d3.v3.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 53 static/cubism.v1.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 58 static/cubism.v1.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 65 static/cubism.v1.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 75 static/cubism.v1.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 42 test/metric-test.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 47 test/metric-test.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 169 test/metric-test.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 174 test/metric-test.js
Server Side Injection(SSI) - setInterval() User controlled data in 'setInterval()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 124 lib/cube/event.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 244 lib/cube/event.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 27 lib/cube/emitter-ws.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 52 lib/cube/emitter-ws.js
Key Hardcoded A hardcoded key in plain text was identified. 126 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 175 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 273 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 371 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 438 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 609 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 730 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 851 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 960 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 1058 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 1156 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 1223 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 1325 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 1605 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 1671 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 1737 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 1941 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2026 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2102 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2174 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2255 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2464 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2597 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2725 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2853 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2934 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2964 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 3002 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 3063 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 3119 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 3176 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 3245 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 3430 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 3483 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 3534 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 3577 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 3616 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 3676 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 3704 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 3732 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 3760 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 3788 lib/cube/metric-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 115 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 164 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 285 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 406 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 592 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 872 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 1076 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 1152 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 1224 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 1305 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 1514 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 1647 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 1775 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 1903 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 1984 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2014 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2052 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2113 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2169 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2226 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2295 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2480 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2533 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2584 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2627 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2666 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2726 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2754 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2782 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2810 lib/cube/event-expression.js
Key Hardcoded A hardcoded key in plain text was identified. 2838 lib/cube/event-expression.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 31 lib/cube/emitter-http.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 39 lib/cube/emitter-http.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 44 lib/cube/emitter-http.js
Missing Security Features
Issue Description
Missing Security Header - X-Frame-Options (XFO) X-Frame-Options (XFO) header provides protection against Clickjacking attacks.
Missing Security Header - Content-Security-Policy (CSP) Content Security Policy (CSP), a mechanism web applications can use to mitigate a broad class of content injection vulnerabilities, such as cross-site scripting (XSS). CSP Header was not found.
Use Strict Strict Mode allows you to place a program, or a function, in a "strict" operating context. This strict context prevents certain actions from being taken and throws more exceptions.
Missing Security Header - Strict-Transport-Security (HSTS) Strict-Transport-Security (HSTS) header enforces secure (HTTP over SSL/TLS) connections to the server.
Missing 'httpOnly' in Cookie JavaScript can access Cookies if they are not marked httpOnly.
Infromation Disclosure - X-Powered-By Remove the X-Powered-By header to prevent information gathering.
Missing Security Header - X-Content-Type-Options X-Content-Type-Options header prevents Internet Explorer and Google Chrome from MIME-sniffing a response away from the declared content-type.
Missing Security Header - X-Download-Options: noopen X-Download-Options header set to noopen prevents IE users from directly opening and executing downloads in your site's context.
Missing Security Header - X-XSS-Protection:1 X-XSS-Protection header set to 1 enables the Cross-site scripting (XSS) filter built into most recent web browsers.
Missing Security Header - Public-Key-Pins (HPKP) Public-Key-Pins (HPKP) ensures that certificate is Pinned.
Outdated Libraries
File Library Reference