Cybersecurity
Web application security
The OWASP Top 10 in practice: XSS, injection, CSRF, security headers and CSP.
Article
We configure the pierogi store's security headers – a Content Security Policy with nonces and strict-dynamic rolled out in report-only mode first, HSTS with preload, protection against framing, Referrer-Policy, Permissions-Policy and CORS without the "star". Helmet in Express and NestJS, a CloudFront headers policy for a static SPA, real header dumps, an interactive CSP builder and testing tools.
Related articles
- OWASP Top 10:2025 in practice – vulnerable and fixed code in Node.js, Express and React (with live XSS examples)
We walk through the current OWASP Top 10:2025 using the pierogi shop's online store – for every category a real bug in Node.js/Express or React and its fix. IDOR and SSRF (now in A01),…
- A DevSecOps pipeline in GitHub Actions – threat modeling, SAST (Semgrep, CodeQL), SCA (npm audit, OSV), CycloneDX SBOMs, Trivy, DAST and dependency updates
We build a GitHub Actions pipeline that checks the pierogi store's security on every pull request – secrets (gitleaks), static analysis (Semgrep with custom rules, CodeQL), dependencies (npm audit,…
- S3 bucket security – Block Public Access, policies, KMS, TLS, Object Lock, OAC and presigned URLs (CDK, JSON)
We secure the pierogi shop's buckets layer by layer – Block Public Access and disabled ACLs, a bucket policy enforcing TLS, the KMS key and the organization perimeter, SSE-KMS encryption with Bucket…
Around the topic
- SSL, TLS, HTTPS Explained video · youtube · ByteByteGo
- HTTP vs HTTPS Explained video · youtube · ByteByteGo
- Gateway Offloading Pattern article · web · Microsoft Azure Architecture Center
- Agile Application Security: Enabling Security in a Continuous Delivery Pipeline book · openlibrary · Laura Bell, Michael Brunton-Spall, Rich Smith, Jim Bird
- Prompt Injection Is the New SQL Injection (and We're Not Ready) article · devto · James Anderson
- OWASP Threat Dragon article · web · OWASP Foundation
- Secure AI: Integrating OWASP Principles in Machine Learning Model Development- Haritha Thilakarathne video · youtube · NDC Conferences