elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.64k stars 8.23k forks source link

`script-src` CSP error happinging on `security/investigate/timelines/template` #128570

Open ghost opened 2 years ago

ghost commented 2 years ago

Kibana Version

8.1

Java Version

bundled

OS Version

Windows server 2019

Problem Description

Some resources are not being loaded causing the whole page to crash with error (in logs)

Steps to Reproduce

Chrome HAR file

https://file.io/sGILG1DJraEt

Logs (if relevant)

Error on Firefox:

Error: n is undefined c@http://localhost:5601/50609/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.4.js:3:7167 831/i/y<@http://localhost:5601/50609/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.4.js:3:7599 useMemo@http://localhost:5601/50609/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:447:65039 useMemo@http://localhost:5601/50609/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:431:5229 i@http://localhost:5601/50609/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.4.js:3:7554 b@http://localhost:5601/50609/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.6.js:3:365491 1432/Nt/o<@http://localhost:5601/50609/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.9.js:3:28473 Nt@http://localhost:5601/50609/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.9.js:3:29035 1432/Lt/<@http://localhost:5601/50609/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.9.js:3:30212 Lt@http://localhost:5601/50609/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.9.js:3:30353 1432/Xi<@http://localhost:5601/50609/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.9.js:3:65590 ga@http://localhost:5601/50609/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:447:59761 rs@http://localhost:5601/50609/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:447:68106 ts@http://localhost:5601/50609/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:447:67925 Ns@http://localhost:5601/50609/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:447:111177 Pu@http://localhost:5601/50609/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:447:97334 Lu@http://localhost:5601/50609/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:447:97146 wu@http://localhost:5601/50609/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:447:94325 Ji/<@http://localhost:5601/50609/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:447:46038 __kbnSharedDeps_npm__</t.unstable_runWithPriority@http://localhost:5601/50609/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:455:3462 Xi@http://localhost:5601/50609/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:447:45747 Ji@http://localhost:5601/50609/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:447:45985 Qi@http://localhost:5601/50609/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:447:45918 vu@http://localhost:5601/50609/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:447:91140 Da@http://localhost:5601/50609/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:447:63420 h/u</<@http://localhost:5601/50609/bundles/plugin/securitySolution/8.0.0/securitySolution.plugin.js:2:173012

Error on Chrome

Error

Error: Cannot read properties of undefined (reading 'includes') at c (http://localhost:5601/50609/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.4.js:3:7169) at http://localhost:5601/50609/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.4.js:3:7599 at Object.useMemo (http://localhost:5601/50609/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:447:65039) at useMemo (http://localhost:5601/50609/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:431:5229) at i (http://localhost:5601/50609/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.4.js:3:7554) at b (http://localhost:5601/50609/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.6.js:3:365491) at http://localhost:5601/50609/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.9.js:3:28473 at Nt (http://localhost:5601/50609/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.9.js:3:29035) at http://localhost:5601/50609/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.9.js:3:30210 at Lt (http://localhost:5601/50609/bundles/plugin/securitySolution/8.0.0/securitySolution.chunk.9.js:3:30353)

Chrome

image

Firefox

image

elasticmachine commented 2 years ago

Pinging @elastic/kibana-operations (Team:Operations)

ghost commented 2 years ago

www.file.io deleting their users file for some reason (shame)

This is Chrome Har again: https://textdoc.co/DXk0KiI9BNO4cWn5

elasticmachine commented 2 years ago

Pinging @elastic/security-solution (Team: SecuritySolution)

elasticmachine commented 2 years ago

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)