web app security notes
Security principles to live by never trust the frontend; seriously don't trust us! (because frontend can easily be bypassed or attacked) defense in depth; multiple not just 1 security check e.g. 2fa, csrf and same site, client and server checks principle of least privilege, users lowest set of privileges by default OWASP Top 10 security risks for Web Applications is a good guide to identifying what risks app builders should be securing again. Injection (including xss) is still in the top 3. The OWASP Cheat Sheet is a good resource too for problems and solutions. Lets look at some top ones: #1 Broken Access Control; exposure/modification/removal of information by unauthorized users. are access controls consistently applied everywhere needed? e.g. menus vs deep links to pages; apis not consistently enforcing auth checks what if bypass ui controls and hit apis directly? #2 Cryptographic failures ; crypto failures can lead to exposure of sensitive data ...