Skip to content

Try “polymorphism”, “TCP handshake” or “git rebase”.

    Security Fundamentals

    Protect users, data and systems — hashing and encryption, passwords, authentication, and the attacks every developer must stop.

    • Module 8 of 8
    • Intermediate
    • 13 chapters
    • 1 h 14 min

    One leaked password or unchecked input can sink a product. These are the protections every developer is expected to build in, and the attacks interviewers ask about.

    What you will be able to do

    • Tell hashing from encryption, and store passwords properly
    • Explain authentication versus authorization
    • Recognise and prevent injection, XSS, CSRF and broken access control
    • Review an app for the most common security holes

    Chapters

    1. The Security MindsetThe CIA triad — the three things security protects:4 min2. Hashing, and Its Two Look-Alikes"We encrypted the passwords with Base64" is a real thing people have said. Base64 is encoding. Anyone can reverse it.4 min3. Storing PasswordsRate-limit logins (Ch 11) — slow hashing protects a stolen table; it doesn't stop online guessing against your login page.5 min4. Encryption in PracticeEncryption in transit — data moving over a network. The answer is TLS everywhere: browser to server, and server to5 min5. Authentication and AuthorizationAuthentication (AuthN) — proving who you are. (HTTP status 401 when missing — 05networking3web.md Ch 5.)4 min6. Broken Access Control and IDORBroken access control — users can act outside their permissions. It is #1 in the OWASP Top 10 (the industry's standard4 min7. InjectionInjection — attacker-controlled input is interpreted as part of a command or query.5 min8. XSS: Attacker Scripts in Your Users' BrowsersXSS (Cross-Site Scripting) — an attacker gets their JavaScript to run inside your website, in other users' browsers. The5 min9. The Same-Origin Policy, CORS and CSRFAn origin is the combination of scheme + host + port (05networking3web.md Ch 1). https://studybuddy.app and6 min10. SSRF and Path TraversalSSRF (Server-Side Request Forgery) — tricking a server into making requests on your behalf to places only the server can3 min11. Secrets, Dependencies and Brute ForceKnown vulnerabilities: scan with pip-audit (Python), npm audit (JavaScript), GitHub Dependabot. Keep dependencies updated.4 min12. AI Security: Prompt Injection and FriendsLLM (Large Language Model) — the kind of AI model behind chat assistants. It reads text (the prompt) and writes text.6 min13. Putting It Together: A Security Review of StudyBuddyA senior engineer reviewing StudyBuddy's design walks the attack surface (Ch 1) layer by layer. Every item below is one earlier2 min

    Extras