Node.Security

Security Audit of Portia

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). 131 slyd/splash_utils/waitAsync.js
Server Side Injection(SSI) - setInterval() User controlled data in 'setInterval()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 135 slyd/splash_utils/waitAsync.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 274 slyd/splash_utils/waitAsync.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 11 slyd/vendor/bootstrap.min.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 79 slyd/app/utils/suggest-annotations.js
Server Side Injection(SSI) - setInterval() User controlled data in 'setInterval()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 55 slyd/app/utils/ferry-websocket.js
Server Side Injection(SSI) - setInterval() User controlled data in 'setInterval()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 139 slyd/app/utils/ferry-websocket.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 25 slyd/app/components/bs-notifications.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 77 slyd/app/components/web-document-js/component.js
Key Hardcoded A hardcoded key in plain text was identified. 41 slyd/app/initializers/add-prototypes.js
Key Hardcoded A hardcoded key in plain text was identified. 43 slyd/app/initializers/add-prototypes.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 77 slyd/tests/acceptance/web-document-test.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 15 slyd/tests/helpers/wait.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 25 slyd/tests/helpers/wait.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 2865 slyd/dist/assets/portia-web-e4258052899f562a81ab88c886a0a7c9.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 4546 slyd/dist/assets/portia-web-e4258052899f562a81ab88c886a0a7c9.js
Key Hardcoded A hardcoded key in plain text was identified. 7931 slyd/dist/assets/portia-web-e4258052899f562a81ab88c886a0a7c9.js
Key Hardcoded A hardcoded key in plain text was identified. 7933 slyd/dist/assets/portia-web-e4258052899f562a81ab88c886a0a7c9.js
Server Side Injection(SSI) - setInterval() User controlled data in 'setInterval()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 24866 slyd/dist/assets/portia-web-e4258052899f562a81ab88c886a0a7c9.js
Server Side Injection(SSI) - setInterval() User controlled data in 'setInterval()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 24971 slyd/dist/assets/portia-web-e4258052899f562a81ab88c886a0a7c9.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 26993 slyd/dist/assets/portia-web-e4258052899f562a81ab88c886a0a7c9.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 3648 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 6529 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setInterval() User controlled data in 'setInterval()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 7084 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 7108 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 8361 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 9815 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 9859 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 9980 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 10002 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 22040 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 25101 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Key Hardcoded A hardcoded key in plain text was identified. 36265 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Key Hardcoded A hardcoded key in plain text was identified. 36271 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 54516 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 55331 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
SSRF - Server Side Request Forgery User controlled data in 'request()'' can result in Server Side Request Forgery (SSRF). 55571 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
SSRF - Server Side Request Forgery User controlled data in 'request()'' can result in Server Side Request Forgery (SSRF). 55583 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
SSRF - Server Side Request Forgery User controlled data in 'request()'' can result in Server Side Request Forgery (SSRF). 55594 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
SSRF - Server Side Request Forgery User controlled data in 'request()'' can result in Server Side Request Forgery (SSRF). 55615 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Key Hardcoded A hardcoded key in plain text was identified. 55827 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 56371 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 56377 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 56396 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 56402 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 56667 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 57352 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 57354 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setInterval() User controlled data in 'setInterval()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 57495 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 57563 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 58650 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 58919 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 59137 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setInterval() User controlled data in 'setInterval()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 59193 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 59298 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Key Hardcoded A hardcoded key in plain text was identified. 60449 slyd/dist/assets/vendor-dfc2f09645d0591fcddf9411517048e0.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 1806 slyd/dist/splash_content_scripts/combined-f5c98fcc210b20ed965b3bb8a911f0db.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 1697 slybot/slybot/splash-script-combined.js
Server Side Injection(SSI) - setInterval() User controlled data in 'setInterval()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 1701 slybot/slybot/splash-script-combined.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 1840 slybot/slybot/splash-script-combined.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 - 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