Math Competition Readiness Hub ยท vineetagrwal.github.io/math-dance-pathway ยท Prepared Nov 2026 ยท Classification: Internal
Executive summary
A static, single-page web application (plus a Jersey City data pilot) hosted on GitHub Pages. It holds no backend and no sensitive data store, so the attack surface is narrow and centered on client-side and supply-chain risk. Since the initial build, the Medium-severity web risks have been remediated (DOM-XSS, missing SRI, no CSP) and a clean secret scan was confirmed. Residual items are low-severity hardening tasks. Reaching enterprise-grade for global, high-demand access primarily requires fronting the site with a CDN/WAF (for real HTTP security headers, DDoS protection, and rate limiting), a strict CSP, automated dependency monitoring, and a documented data-governance/privacy posture for the school registry.
1. Original state & baseline risk
Architecture: one static index.html on GitHub Pages; no server, no database, no auth.
Baseline gaps identified: external links without rel="noopener" (tabnabbing); a dead third-party counter (countapi.xyz); no README/LICENSE; no CSP; CDN assets without Subresource Integrity (SRI); DOM-XSS exposure once external data (school names) was rendered via innerHTML; no automated dependency/secret scanning.
Baseline posture: low data-breach risk (no data store) but several Medium client-side/supply-chain weaknesses and no hardening baseline.
2. Progress to date โ remediations
Area
Action
Status
XSS (client-side)
Added HTML-escaping of all external/registry data before DOM insertion & map popups
Fixed
Supply chain
Pinned Leaflet + added SHA-384 SRI; version-pinned (no @latest)
Fixed
Browser hardening
Added meta Content-Security-Policy restricting script/style/img/connect origins
Fixed
Transport
HTTPS enforced (GitHub Pages); all external links use rel="noopener noreferrer"
Fixed
Secrets
Repo secret scan (PAT/keys/PEM) across tracked files
Pass โ none
Data integrity
Registry sourced from authoritative NCES + official host lists; corrections reviewed before publish
In place
Privacy analytics
GoatCounter (cookieless, no PII); no third-party ad/tracking
In place
Resiliency
Removed dead external counter; cache-control + no-store data fetches for freshness
Fixed
Governance
Added README, LICENSE, and a tracked SECURITY-ASSESSMENT.md
Fixed
3. Current risk register
ID
Risk
Sev
Status
V-01
DOM-XSS via external data
Med
Fixed
V-02
No SRI on CDN assets
Med
Fixed
V-03
No Content-Security-Policy
Med
Fixed (meta)
V-04
CSP needs unsafe-inline (inline JS/CSS)
Low
Open
V-05
Third-party scripts (Leaflet, GoatCounter)
Low
Accepted
V-06
Owner email exposed in mailto:
Low
Open
V-07
Form/lead data in localStorage
Low
Accepted
V-08
No automated SCA / dependency monitoring
Low
Open
V-09
No HSTS / frame-ancestors (GitHub Pages header limits)
Med
Open*
*Not fixable via <meta> on GitHub Pages โ requires a CDN/proxy to set real response headers (see roadmap).
4. Resiliency & scale posture
Strengths for global high demand: fully static assets served from GitHub's CDN โ horizontally scalable, no backend to overload, no database to fail. A traffic spike serves cached files; cost stays flat.
Single points of failure: GitHub Pages availability; CDN dependencies (unpkg/Leaflet, OpenStreetMap tiles, GoatCounter). Tile/analytics outages degrade gracefully (map/analytics only).
No rate limiting / WAF / DDoS controls at the edge today (GitHub Pages provides basic protection only).
5. Hardening roadmap โ to enterprise-grade, global access
Phase 1 โ Edge & headers (highest impact)
Front the site with a CDN/WAF (e.g., Cloudflare) to add HSTS, X-Frame-Options/frame-ancestors, X-Content-Type-Options, Referrer-Policy, plus DDoS protection, rate limiting, and bot management for high-demand access.
Self-host or SRI-pin all third-party assets; add a tile-provider fallback.
Phase 2 โ App hardening
Externalize JS/CSS and adopt a nonce/hash-based CSP (remove unsafe-inline) โ closes V-04.
Replace mailto: with a vetted form backend (spam/abuse controls, CAPTCHA) โ closes V-06.
Phase 3 โ Supply chain & CI
Enable Dependabot + SCA (e.g., pip-audit) and a link-checker in CI โ closes V-08.
Add branch protection, required reviews, and signed commits.
Phase 4 โ Data governance, privacy & compliance
Formalize the registry data pipeline: source attribution, review-before-publish, and a correction/audit trail.
Given the education context, document a privacy posture (COPPA / FERPA-aware): collect no student PII; keep submitter data minimal and consented; publish a privacy notice.
Accessibility (WCAG 2.1 AA) and a performance budget as release gates.
Phase 5 โ Operations
Uptime/synthetic monitoring + alerting; a lightweight incident-response runbook; periodic re-assessment.