Node.Security

Security Audit of Wp-calypso

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
Key Hardcoded A hardcoded key in plain text was identified. 194 client/reader/controller.js
Key Hardcoded A hardcoded key in plain text was identified. 244 client/reader/controller.js
Key Hardcoded A hardcoded key in plain text was identified. 279 client/reader/controller.js
Key Hardcoded A hardcoded key in plain text was identified. 319 client/reader/controller.js
Key Hardcoded A hardcoded key in plain text was identified. 24 client/reader/recommendations/controller.js
Key Hardcoded A hardcoded key in plain text was identified. 22 client/reader/following/controller.js
Key Hardcoded A hardcoded key in plain text was identified. 25 client/reader/start/controller.js
Key Hardcoded A hardcoded key in plain text was identified. 24 client/reader/list/controller.js
Key Hardcoded A hardcoded key in plain text was identified. 59 client/reader/list/controller.js
Key Hardcoded A hardcoded key in plain text was identified. 89 client/reader/list/controller.js
Key Hardcoded A hardcoded key in plain text was identified. 119 client/reader/list/controller.js
Key Hardcoded A hardcoded key in plain text was identified. 25 client/reader/discover/controller.js
Key Hardcoded A hardcoded key in plain text was identified. 28 client/reader/tag-stream/controller.js
Key Hardcoded A hardcoded key in plain text was identified. 22 client/reader/liked-stream/controller.js
Key Hardcoded A hardcoded key in plain text was identified. 24 client/reader/search/controller.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 459 client/components/infinite-list/scroll-helper.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 29 client/components/email-verification/index.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 102 client/components/tinymce/plugins/wpcom-autoresize/plugin.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 74 client/components/tinymce/plugins/touch-scroll-toolbar/plugin.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 74 client/components/tinymce/plugins/wptextpattern/plugin.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 76 client/components/tinymce/plugins/wptextpattern/plugin.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 147 client/components/tinymce/plugins/wptextpattern/plugin.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 230 client/components/tinymce/plugins/wptextpattern/plugin.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 290 client/components/tinymce/plugins/wptextpattern/plugin.js
Server Side Injection(SSI) - setInterval() User controlled data in 'setInterval()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 762 client/components/tinymce/plugins/wpcom-view/plugin.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 638 client/components/tinymce/plugins/wpcom/plugin.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 92 client/components/tinymce/plugins/wpeditimage/plugin.js
Key Hardcoded A hardcoded key in plain text was identified. 21 client/my-sites/stats/mixin-toggle.js
Key Hardcoded A hardcoded key in plain text was identified. 56 client/my-sites/stats/mixin-toggle.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 164 client/my-sites/upgrades/domain-management/list/test/index.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 176 client/my-sites/upgrades/domain-management/list/test/index.js
Key Hardcoded A hardcoded key in plain text was identified. 26 client/layout/poll-invitation/index.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 29 client/layout/nux-welcome/index.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 21 client/layout/guided-tours/wait.js
Key Hardcoded A hardcoded key in plain text was identified. 18 client/lib/keyboard-shortcuts/key-bindings.js
Key Hardcoded A hardcoded key in plain text was identified. 22 client/lib/keyboard-shortcuts/key-bindings.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 24 client/lib/infinite-list/actions.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 40 client/lib/infinite-list/actions.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 1032 client/lib/menu-data/menu-data.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 146 client/lib/interval/runner.js
Key Hardcoded A hardcoded key in plain text was identified. 24 client/lib/signup/progress-store.js
Key Hardcoded A hardcoded key in plain text was identified. 34 client/lib/signup/flow-controller.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 24 client/lib/feed-post-store/post-fetcher.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 348 client/lib/plugins/store.js
Key Hardcoded A hardcoded key in plain text was identified. 11 client/lib/local-list/test/index.js
Server Side Injection(SSI) - setInterval() User controlled data in 'setInterval()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 31 client/lib/ticker/index.js
Server Side Injection(SSI) - setInterval() User controlled data in 'setInterval()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 111 client/lib/popup-monitor/index.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 42 client/lib/olark-api/vendor-olark.js
Server Side Injection(SSI) - setInterval() User controlled data in 'setInterval()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 59 client/lib/mixins/render-visualizer/index.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 52 client/lib/mixins/infinite-scroll/index.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 58 client/lib/mixins/protect-form/index.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 41 client/lib/data-poller/poller.js
Server Side Injection(SSI) - setInterval() User controlled data in 'setInterval()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 57 client/lib/data-poller/poller.js
Key Hardcoded A hardcoded key in plain text was identified. 67 client/lib/wp/sync-handler/test/cache-index.js
Key Hardcoded A hardcoded key in plain text was identified. 9 client/lib/wp/sync-handler/test/data/index.js
Key Hardcoded A hardcoded key in plain text was identified. 10 client/lib/wp/sync-handler/test/data/index.js
Key Hardcoded A hardcoded key in plain text was identified. 11 client/lib/wp/sync-handler/test/data/index.js
Key Hardcoded A hardcoded key in plain text was identified. 12 client/lib/wp/sync-handler/test/data/index.js
Key Hardcoded A hardcoded key in plain text was identified. 14 client/lib/wp/sync-handler/test/data/index.js
Key Hardcoded A hardcoded key in plain text was identified. 15 client/lib/wp/sync-handler/test/data/index.js
Key Hardcoded A hardcoded key in plain text was identified. 90 client/lib/reader-feed-subscriptions/actions.js
Key Hardcoded A hardcoded key in plain text was identified. 118 client/lib/reader-feed-subscriptions/actions.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 13 client/lib/user-settings/test/mocks/wp.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 11 client/lib/route/redirect.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 128 client/lib/olark/index.js
Username Hardcoded A hardcoded username in plain text was identified. Store it properly in a config file. 294 client/lib/olark/index.js
Key Hardcoded A hardcoded key in plain text was identified. 28 client/lib/query-manager/index.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 46 client/lib/wporg/jsonp.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 27 client/lib/auth-code-request-store/actions.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 200 client/lib/upgrades/actions/domain-management.js
Key Hardcoded A hardcoded key in plain text was identified. 27 client/lib/user/support-user-interop.js
Server Side Injection(SSI) - setInterval() User controlled data in 'setInterval()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 324 client/lib/user/user.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 8 client/lib/detect-history-navigation/index.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 557 client/lib/post-normalizer/test/index.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 558 client/lib/post-normalizer/test/index.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 45 client/state/ui/olark/actions.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 26 client/state/plugins/wporg/actions.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 20 client/state/plugins/wporg/test/lib/mock-wporg.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 244 client/state/plugins/premium/actions.js
Key Hardcoded A hardcoded key in plain text was identified. 105 client/state/posts/counts/selectors.js
Key Hardcoded A hardcoded key in plain text was identified. 110 client/state/posts/counts/selectors.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 52 client/state/jetpack-connect/actions.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 88 client/state/jetpack-connect/actions.js
Server Side Injection(SSI) - setTimeout() User controlled data in 'setTimeout()' can result in Server Side Injection (SSI) or Remote Code Execution (RCE). 107 client/state/jetpack-connect/actions.js
Key Hardcoded A hardcoded key in plain text was identified. 3 client/state/preferences/constants.js
Missing Security Features
Issue Description
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.
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