{"slug":"web-security","group":"security","title":"Web application security","short":"The OWASP Top 10 in practice: XSS, injection, CSRF, security headers and CSP.","icon":"shield-alert","aliases":["OWASP","OWASP Top 10","XSS","CSRF","SQL injection","bezpieczeństwo aplikacji webowych"],"order":951,"status":"available","articleCount":4,"groupTitle":"Cybersecurity","intro":"","servedLang":"en","primaryArticle":{"id":"6b09a4bfff996234422a274c","slug":"security-headers-and-csp","title":"Security headers and CSP – nonces, strict-dynamic, report-only, HSTS, Permissions-Policy and CORS in Express, NestJS and CloudFront","summary":"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.","servedLang":"en","availableLangs":["pl","en"],"topics":["web-security","express","nestjs"],"techs":["node","typescript","javascript"],"tags":["csp","content-security-policy","nonce","strict-dynamic","hsts","cors","helmet","permissions-policy","referrer-policy","clickjacking","cloudfront","security-headers"],"level":"intermediate","kind":"tutorial","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":13,"stats":{"views":0,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T15:41:51.458Z","updatedAt":"2026-11-27T15:41:51.508Z","challengeCount":0,"quizCount":0},"articles":[{"id":"6b09a4b7ff996234422a26ce","slug":"owasp-top-10-in-practice","title":"OWASP Top 10:2025 in practice – vulnerable and fixed code in Node.js, Express and React (with live XSS examples)","summary":"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), misconfiguration, the supply chain, cryptography, SQL and NoSQL injection with a runnable demo, XSS in two interactive playgrounds, insecure design, authentication, integrity (SRI), security event logging and fail-closed exception handling.","servedLang":"en","availableLangs":["pl","en"],"topics":["web-security","api-security","react","express"],"techs":["node","typescript","javascript"],"tags":["owasp-top-10","owasp-2025","xss","sql-injection","nosql-injection","ssrf","idor","broken-access-control","supply-chain","dompurify","sri","react","express"],"level":"intermediate","kind":"tutorial","access":"public","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":19,"stats":{"views":0,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T15:41:43.532Z","updatedAt":"2026-11-27T15:41:43.579Z","relation":{"position":0,"primary":true,"mainTopic":null}},{"id":"6b09a4b5ff996234422a26a4","slug":"devsecops-pipeline","title":"A DevSecOps pipeline in GitHub Actions – threat modeling, SAST (Semgrep, CodeQL), SCA (npm audit, OSV), CycloneDX SBOMs, Trivy, DAST and dependency updates","summary":"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, signatures, dependency review), a CycloneDX SBOM, image and IaC scanning (Trivy), DAST (ZAP) on staging and safe updates (Renovate, Dependabot with a cooldown). Plus threat modeling during planning and triage rules, so the scanners help rather than get in the way.","servedLang":"en","availableLangs":["pl","en"],"topics":["secure-sdlc","web-security","secrets-management"],"techs":["node","typescript"],"tags":["devsecops","github-actions","sast","semgrep","codeql","sca","npm-audit","osv-scanner","sbom","cyclonedx","trivy","dast","zap","renovate","dependabot","threat-modeling","supply-chain"],"level":"intermediate","kind":"tutorial","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":14,"stats":{"views":1,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T15:41:41.204Z","updatedAt":"2026-11-27T17:31:13.321Z","relation":{"position":1,"primary":false,"mainTopic":{"slug":"secure-sdlc","title":"DevSecOps & secure SDLC"}}},{"id":"6b09a4b3ff996234422a2688","slug":"aws-s3-bucket-security","title":"S3 bucket security – Block Public Access, policies, KMS, TLS, Object Lock, OAC and presigned URLs (CDK, JSON)","summary":"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 Keys, versioning, MFA Delete and Object Lock, lifecycle rules, CloudFront with Origin Access Control, hardened presigned URLs, plus logs, CloudTrail, Macie and GuardDuty. Code in AWS CDK (TypeScript) and JSON policies.","servedLang":"en","availableLangs":["pl","en"],"topics":["aws-s3","aws-iam","web-security"],"techs":["typescript","node"],"tags":["aws","s3","bucket-policy","block-public-access","kms","sse-kms","object-lock","cloudfront-oac","presigned-url","cloudtrail","macie","guardduty","aws-cdk"],"level":"intermediate","kind":"tutorial","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":17,"stats":{"views":0,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T15:41:39.894Z","updatedAt":"2026-11-27T15:41:39.944Z","relation":{"position":2,"primary":false,"mainTopic":{"slug":"aws-s3","title":"AWS S3"}}}],"challenges":[],"resources":[{"id":"6b0857c53c96f2d34d0b47c3","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=j9QmMEWmcfo","embedUrl":"https://www.youtube-nocookie.com/embed/j9QmMEWmcfo","title":"SSL, TLS, HTTPS Explained","description":"To get better at system design, subscribe to our weekly newsletter: https://bit.ly/3tfAlYD Checkout our bestselling System Design Interview books: Volume 1: https://amzn.to/3Ou7gkd Volume 2: https://amzn.to/3HqGozy ABOUT US: Covering topics and trends in large-scale system design, from the authors…","author":"ByteByteGo","thumbnailUrl":"https://i.ytimg.com/vi/j9QmMEWmcfo/hqdefault.jpg","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["system-design"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2022-12-08T16:30:04.000Z","popularity":91,"verifiedAt":"2026-11-26T10:55:10.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:07.480Z","updatedAt":"2026-11-26T16:01:07.480Z"},{"id":"6b0857c63c96f2d34d0b48dd","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=WvSVSbGo0wI","embedUrl":"https://www.youtube-nocookie.com/embed/WvSVSbGo0wI","title":"HTTP vs HTTPS Explained","description":"To get better at system design, subscribe to our weekly newsletter: https://bit.ly/3tfAlYD Checkout our bestselling System Design Interview books: Volume 1: https://amzn.to/3Ou7gkd Volume 2: https://amzn.to/3HqGozy ABOUT US: Covering topics and trends in large-scale system design, from the authors…","author":"ByteByteGo","thumbnailUrl":"https://i.ytimg.com/vi/WvSVSbGo0wI/hqdefault.jpg","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["system-design"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2026-08-12T15:00:38.000Z","popularity":68,"verifiedAt":"2026-11-26T10:54:48.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:10.095Z","updatedAt":"2026-11-26T16:01:10.095Z"},{"id":"6b0857bf3c96f2d34d0b42af","type":"article","provider":"web","url":"https://learn.microsoft.com/en-us/azure/architecture/patterns/gateway-offloading","embedUrl":null,"title":"Gateway Offloading Pattern","description":"Centralize shared capabilities, such as TLS termination and authentication, in a gateway to simplify backend services.","author":"Microsoft Azure Architecture Center","thumbnailUrl":"https://learn.microsoft.com/en-us/media/open-graph-image.png","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["azure","cloud"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":61,"verifiedAt":"2026-11-26T11:07:50.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857c43c96f2d34d0b4753","type":"book","provider":"openlibrary","url":"https://openlibrary.org/works/OL19543758W","embedUrl":null,"title":"Agile Application Security: Enabling Security in a Continuous Delivery Pipeline","description":"","author":"Laura Bell, Michael Brunton-Spall, Rich Smith, Jim Bird","thumbnailUrl":"https://covers.openlibrary.org/b/id/8510263-L.jpg","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["book","security","devops"],"price":"paid","featured":false,"featuredOrder":0,"packageName":null,"source":"openlibrary","publishedAt":"2017-01-01T00:00:00.000Z","popularity":31,"verifiedAt":"2026-11-26T11:00:08.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:07.480Z","updatedAt":"2026-11-26T16:01:07.480Z"},{"id":"6b0857b13c96f2d34d0b32c6","type":"article","provider":"devto","url":"https://dev.to/james_anderson_h/prompt-injection-is-the-new-sql-injection-and-were-not-ready-4ea4","embedUrl":null,"title":"Prompt Injection Is the New SQL Injection (and We're Not Ready)","description":"In March 2026, a financial services company discovered that their customer-facing AI agent had been...","author":"James Anderson","thumbnailUrl":"https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs3naos2gu55mg9na6jui.png","durationSec":null,"lang":"en","topics":["prompt-engineering","ai-guardrails"],"techs":["general"],"tags":["databases","security","ai","agents","webdev"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"devto","publishedAt":"2026-09-27T05:32:50.000Z","popularity":65,"verifiedAt":"2026-11-26T10:55:12.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:49.541Z","updatedAt":"2026-11-26T16:00:49.541Z"},{"id":"6b09ab5e3c96f2d34d0bc215","type":"article","provider":"web","url":"https://owasp.org/www-project-threat-dragon/","embedUrl":null,"title":"OWASP Threat Dragon","description":"Free, open-source threat modelling tool (web and desktop): draw data-flow diagrams, apply STRIDE or LINDDUN and keep the threat model next to the code.","author":"OWASP Foundation","thumbnailUrl":"https://owasp.org/images/og/owasp-default.png","durationSec":null,"lang":"en","topics":["solution-architecture"],"techs":["general"],"tags":["threat-modeling","security","stride"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":60,"verifiedAt":"2026-11-27T15:40:00.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-27T16:10:06.319Z","updatedAt":"2026-11-27T16:10:06.319Z"},{"id":"6b0857cb3c96f2d34d0b4c1d","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=g5A4LaPxT-k","embedUrl":"https://www.youtube-nocookie.com/embed/g5A4LaPxT-k","title":"Secure AI: Integrating OWASP Principles in Machine Learning Model Development- Haritha Thilakarathne","description":"This talk was recorded at NDC Sydney in Sydney, Australia. #ndcsydney #ndcconferences #developer #softwaredeveloper Attend the next NDC conference near you: https://ndcconferences.com https://ndcsydney.com/ Subscribe to our YouTube channel and learn every day: / @NDC Follow our Social Media!…","author":"NDC Conferences","thumbnailUrl":"https://i.ytimg.com/vi/g5A4LaPxT-k/hqdefault.jpg","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["security","machine-learning","ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2024-06-04T15:00:40.000Z","popularity":45,"verifiedAt":"2026-11-26T11:13:11.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:12.872Z","updatedAt":"2026-11-26T16:01:12.872Z"}],"resourceGroups":[{"type":"video","items":[{"id":"6b0857c53c96f2d34d0b47c3","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=j9QmMEWmcfo","embedUrl":"https://www.youtube-nocookie.com/embed/j9QmMEWmcfo","title":"SSL, TLS, HTTPS Explained","description":"To get better at system design, subscribe to our weekly newsletter: https://bit.ly/3tfAlYD Checkout our bestselling System Design Interview books: Volume 1: https://amzn.to/3Ou7gkd Volume 2: https://amzn.to/3HqGozy ABOUT US: Covering topics and trends in large-scale system design, from the authors…","author":"ByteByteGo","thumbnailUrl":"https://i.ytimg.com/vi/j9QmMEWmcfo/hqdefault.jpg","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["system-design"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2022-12-08T16:30:04.000Z","popularity":91,"verifiedAt":"2026-11-26T10:55:10.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:07.480Z","updatedAt":"2026-11-26T16:01:07.480Z"},{"id":"6b0857c63c96f2d34d0b48dd","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=WvSVSbGo0wI","embedUrl":"https://www.youtube-nocookie.com/embed/WvSVSbGo0wI","title":"HTTP vs HTTPS Explained","description":"To get better at system design, subscribe to our weekly newsletter: https://bit.ly/3tfAlYD Checkout our bestselling System Design Interview books: Volume 1: https://amzn.to/3Ou7gkd Volume 2: https://amzn.to/3HqGozy ABOUT US: Covering topics and trends in large-scale system design, from the authors…","author":"ByteByteGo","thumbnailUrl":"https://i.ytimg.com/vi/WvSVSbGo0wI/hqdefault.jpg","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["system-design"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2026-08-12T15:00:38.000Z","popularity":68,"verifiedAt":"2026-11-26T10:54:48.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:10.095Z","updatedAt":"2026-11-26T16:01:10.095Z"},{"id":"6b0857cb3c96f2d34d0b4c1d","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=g5A4LaPxT-k","embedUrl":"https://www.youtube-nocookie.com/embed/g5A4LaPxT-k","title":"Secure AI: Integrating OWASP Principles in Machine Learning Model Development- Haritha Thilakarathne","description":"This talk was recorded at NDC Sydney in Sydney, Australia. #ndcsydney #ndcconferences #developer #softwaredeveloper Attend the next NDC conference near you: https://ndcconferences.com https://ndcsydney.com/ Subscribe to our YouTube channel and learn every day: / @NDC Follow our Social Media!…","author":"NDC Conferences","thumbnailUrl":"https://i.ytimg.com/vi/g5A4LaPxT-k/hqdefault.jpg","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["security","machine-learning","ai"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2024-06-04T15:00:40.000Z","popularity":45,"verifiedAt":"2026-11-26T11:13:11.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:12.872Z","updatedAt":"2026-11-26T16:01:12.872Z"}]},{"type":"article","items":[{"id":"6b0857bf3c96f2d34d0b42af","type":"article","provider":"web","url":"https://learn.microsoft.com/en-us/azure/architecture/patterns/gateway-offloading","embedUrl":null,"title":"Gateway Offloading Pattern","description":"Centralize shared capabilities, such as TLS termination and authentication, in a gateway to simplify backend services.","author":"Microsoft Azure Architecture Center","thumbnailUrl":"https://learn.microsoft.com/en-us/media/open-graph-image.png","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["azure","cloud"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":61,"verifiedAt":"2026-11-26T11:07:50.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857b13c96f2d34d0b32c6","type":"article","provider":"devto","url":"https://dev.to/james_anderson_h/prompt-injection-is-the-new-sql-injection-and-were-not-ready-4ea4","embedUrl":null,"title":"Prompt Injection Is the New SQL Injection (and We're Not Ready)","description":"In March 2026, a financial services company discovered that their customer-facing AI agent had been...","author":"James Anderson","thumbnailUrl":"https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs3naos2gu55mg9na6jui.png","durationSec":null,"lang":"en","topics":["prompt-engineering","ai-guardrails"],"techs":["general"],"tags":["databases","security","ai","agents","webdev"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"devto","publishedAt":"2026-09-27T05:32:50.000Z","popularity":65,"verifiedAt":"2026-11-26T10:55:12.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:49.541Z","updatedAt":"2026-11-26T16:00:49.541Z"},{"id":"6b09ab5e3c96f2d34d0bc215","type":"article","provider":"web","url":"https://owasp.org/www-project-threat-dragon/","embedUrl":null,"title":"OWASP Threat Dragon","description":"Free, open-source threat modelling tool (web and desktop): draw data-flow diagrams, apply STRIDE or LINDDUN and keep the threat model next to the code.","author":"OWASP Foundation","thumbnailUrl":"https://owasp.org/images/og/owasp-default.png","durationSec":null,"lang":"en","topics":["solution-architecture"],"techs":["general"],"tags":["threat-modeling","security","stride"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":60,"verifiedAt":"2026-11-27T15:40:00.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-27T16:10:06.319Z","updatedAt":"2026-11-27T16:10:06.319Z"}]},{"type":"book","items":[{"id":"6b0857c43c96f2d34d0b4753","type":"book","provider":"openlibrary","url":"https://openlibrary.org/works/OL19543758W","embedUrl":null,"title":"Agile Application Security: Enabling Security in a Continuous Delivery Pipeline","description":"","author":"Laura Bell, Michael Brunton-Spall, Rich Smith, Jim Bird","thumbnailUrl":"https://covers.openlibrary.org/b/id/8510263-L.jpg","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["book","security","devops"],"price":"paid","featured":false,"featuredOrder":0,"packageName":null,"source":"openlibrary","publishedAt":"2017-01-01T00:00:00.000Z","popularity":31,"verifiedAt":"2026-11-26T11:00:08.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:07.480Z","updatedAt":"2026-11-26T16:01:07.480Z"}]}],"siblings":[{"slug":"web-security","title":"Web application security","icon":"shield-alert","status":"available","current":true},{"slug":"api-security","title":"API security","icon":"lock-keyhole","status":"available","current":false},{"slug":"secrets-management","title":"Secrets management","icon":"vault","status":"available","current":false},{"slug":"secure-sdlc","title":"DevSecOps & secure SDLC","icon":"shield-ellipsis","status":"available","current":false}]}