Skip to content

Commit 7558510

Browse files
authored
Frontend Web app FW: Add third party script security page (#454)
* Add third party script security page in the frontend web app fw * fix Further Reading link * Fix links in web3-supply-chain-threats.mdx
1 parent a1637dc commit 7558510

7 files changed

Lines changed: 411 additions & 4 deletions

File tree

docs/pages/front-end-web-app/index.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ title: "Front End Web App"
1313

1414
- [Front-End Web Application Security](/front-end-web-app/overview)
1515
- [Web Application Security](/front-end-web-app/web-application-security)
16+
- [Third-Party Script Security](/front-end-web-app/third-party-script-security)
1617
- [Mobile Application Security](/front-end-web-app/mobile-application-security)
1718
- [Common Web Vulnerabilities](/front-end-web-app/common-vulnerabilities)
1819
- [Security Tools & Resources](/front-end-web-app/security-tools-resources)

docs/pages/front-end-web-app/overview.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ as they could, for example, start interacting with a malicious contract instead
2525

2626
1. [Web Application Security](/front-end-web-app/web-application-security)
2727
2. [Mobile Application Security](/front-end-web-app/mobile-application-security)
28-
3. [Common Vulnerabilities](/front-end-web-app/common-vulnerabilities)
29-
4. [Security Tools and Resources](/front-end-web-app/security-tools-resources)
28+
3. [Third-Party Script Security](/front-end-web-app/third-party-script-security)
29+
4. [Common Vulnerabilities](/front-end-web-app/common-vulnerabilities)
30+
5. [Security Tools and Resources](/front-end-web-app/security-tools-resources)
3031

3132
---
3233

docs/pages/front-end-web-app/third-party-script-security.mdx

Lines changed: 388 additions & 0 deletions
Large diffs are not rendered by default.

docs/pages/supply-chain/dependency-awareness.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,8 @@ contracts and their imported libraries, see
381381
- [Snyk Vulnerability Database](https://security.snyk.io/): Searchable database of known vulnerabilities
382382
- [Cargo Security Advisories](https://rustsec.org/): Rust security advisory database and `cargo-audit`
383383
- [Go Vulnerability Database](https://vuln.go.dev/): Official Go vulnerability tracking and `govulncheck`
384+
- [Third-Party Script Security](/front-end-web-app/third-party-script-security): Runtime integrity controls (Content
385+
Security Policy, Subresource Integrity, self-hosting) that complement build-time dependency practices
384386

385387
---
386388

docs/pages/supply-chain/web3-supply-chain-threats.mdx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ the user's browser.
5656

5757
For practices to defend against these attacks, see [Dependency Awareness](/supply-chain/dependency-awareness).
5858

59+
For runtime integrity verification using Subresource Integrity and Content Security Policy, see
60+
[Third-Party Script Security](/front-end-web-app/third-party-script-security).
61+
5962
### Wallet Connector Library Hijacking
6063

6164
Wallet connector libraries are a particularly high-value target because they sit at the exact point where user intent
@@ -69,6 +72,9 @@ meets transaction construction.
6972

7073
For wallet-specific security practices, see the [Wallet Security](/wallet-security/overview) framework.
7174

75+
For browser-level controls that would have blocked execution of the tampered library, see
76+
[Third-Party Script Security](/front-end-web-app/third-party-script-security).
77+
7278
### CDN and Hosting Compromise
7379

7480
An attacker who compromises your hosting provider or poisons a CDN cache can serve tampered JavaScript to all users
@@ -78,8 +84,10 @@ without touching your repository.
7884
signing with fund redirection.
7985
- **CDN cache poisoning** can serve malicious scripts even if your origin server is clean.
8086

81-
For DNS hardening, registrar locks, and monitoring, see the
82-
[Domain & DNS Security](/infrastructure/domain-and-dns-security/overview) framework.
87+
For DNS hardening, registrar locks, and monitoring, see the [Domain & DNS Security](/infrastructure/domain-and-dns-security/overview) framework.
88+
89+
For browser-level defenses against CDN and hosting compromise, including Content Security Policy, Subresource Integrity, and self-hosting
90+
strategies, see [Third-Party Script Security](/front-end-web-app/third-party-script-security).
8391

8492
## Smart Contract Dependency Risks
8593

@@ -252,6 +260,8 @@ For hardware wallet security guidance, see the [Wallet Security](/wallet-securit
252260
[Vendor Risk Management](/supply-chain/vendor-risk-management) guide
253261
- Track real-time exploit data and historical incidents on the
254262
[DeFiLlama Hacks Dashboard](https://defillama.com/hacks)
263+
- [Third-Party Script Security](/front-end-web-app/third-party-script-security): Runtime integrity controls (Content
264+
Security Policy, Subresource Integrity, self-hosting) that complement build-time dependency practices
255265

256266
---
257267

utils/fetched-tags.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,10 @@
418418
"Engineer/Developer",
419419
"Security Specialist"
420420
],
421+
"/front-end-web-app/third-party-script-security": [
422+
"Engineer/Developer",
423+
"Security Specialist"
424+
],
421425
"/front-end-web-app/web-application-security": [
422426
"Engineer/Developer",
423427
"Security Specialist"

vocs.config.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ const config = {
176176
items: [
177177
{ text: 'Overview', link: '/front-end-web-app/overview', dev: true },
178178
{ text: 'Web Application Security', link: '/front-end-web-app/web-application-security', dev: true },
179+
{ text: 'Third-Party Script Security', link: '/front-end-web-app/third-party-script-security', dev: true },
179180
{ text: 'Mobile Application Security', link: '/front-end-web-app/mobile-application-security', dev: true },
180181
{ text: 'Common Vulnerabilities', link: '/front-end-web-app/common-vulnerabilities', dev: true },
181182
{ text: 'Security Tools and Resources', link: '/front-end-web-app/security-tools-resources', dev: true },

0 commit comments

Comments
 (0)