mirror of
https://github.com/Coldcard/push-tx.git
synced 2026-10-22 08:33:24 +00:00
fix: remediate DOM-based XSS in PushTX
- Refactor renderMessage to return HTMLElement and accept Node content - Add textMessage helper for plain-text messages - Replace innerHTML assignments with replaceChildren + DOM APIs - Stop reflecting raw network parameter in parseFragment error - Convert provider-error HTML construction to ProviderErrorsError class - Escape API-returned values in renderTxDetails via textContent - Add restrictive CSP meta tag to index.html - Rebuild website and single-file artifacts - Regenerate SHA256SUMS
This commit is contained in:
1 parent
7a9a47caa8
commit
e22edc2813
5 files changed
+234
-317
No files matched your search
@@ -4,6 +4,10 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta
|
||||
http-equiv="Content-Security-Policy"
|
||||
content="default-src 'none'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; connect-src https://mempool.space https://blockstream.info; img-src 'none'; font-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none';"
|
||||
/>
|
||||
<title>COLDCARD NFC Push TX</title>
|
||||
</head>
|
||||
|
||||
|
||||
Reference in new issue
Block a user