セキュリティ
Checklist: Security Recommendations
You should at least follow these steps to improve the security of your application:
- Only load secure content
- Disable the Node.js integration in all renderers that display remote content
- Enable context isolation in all renderers that display remote content
- Use ses.setPermissionRequestHandler() in all sessions that load remote content
- Do not disable webSecurity
- Define a Content-Security-Policy and use restrictive rules (i.e. script-src ‘self’)
- Do not set allowRunningInsecureContent to true
- Do not enable experimental features
- Do not use enableBlinkFeatures
- <webview>: Do not use allowpopups
- <webview>: Verify options and params
- Disable or limit navigation
- Disable or limit creation of new windows
- Do not use openExternal with untrusted content
- Use a current version of Electron
—— security.md
参考:
Electron のセキュリティは難しい? | DeNA Engineers’ Blog
Web ビューをサンドボックス化する
参考:
ローカルの画像が表示できない
参考:
9.0.0 does not display local images · Issue #23757 · electron/electron – GitHub
脆弱性
参考:
Electron におけるセキュリティ関連の Issue の再現 – GitHub Gist
webview タグの脆弱性
参考:
file URI スキームの脆弱性
参考: