fix: harden VS Code bridge and webview CSP
This commit is contained in:
@@ -219,6 +219,21 @@ assertContains(
|
||||
"VNC Connections",
|
||||
"in-app help must document VNC connection profiles",
|
||||
);
|
||||
assertContains(
|
||||
"vscode/nexus/extension.js",
|
||||
"crypto.randomBytes(16).toString('base64')",
|
||||
"Nexus VS Code webview CSP nonces must use cryptographic randomness",
|
||||
);
|
||||
assertContains(
|
||||
"vscode/leviathan/extension.js",
|
||||
"crypto.randomBytes(16).toString('base64')",
|
||||
"Leviathan VS Code webview CSP nonces must use cryptographic randomness",
|
||||
);
|
||||
assertTreeNotContains(
|
||||
"vscode",
|
||||
"const nonce = String(Date.now());",
|
||||
"VS Code webview CSP nonces must not be predictable timestamps",
|
||||
);
|
||||
assertContains(
|
||||
"docs/user-manual.md",
|
||||
"## 11. Leviathan binary workbench",
|
||||
|
||||
Reference in New Issue
Block a user