29. OWASP Top 10 Web Vulnerabilities
29.1 What OWASP and the Top 10 Are
In short: OWASP (Open Worldwide Application Security Project) is a non-profit that publishes free security guidance.
Quick answer: the short, self-contained version of this lesson is the guide OWASP Top 10 Explained Simply (2025).
OWASP (Open Worldwide Application Security Project) is a non-profit that publishes free security guidance. Its most famous document is the OWASP Top 10 – the ten most critical web application security risks, updated every few years (the current list is from 2021; verify the latest at owasp.org).
The 2021 Top 10:
| # | Category |
|---|---|
| A01 | Broken Access Control |
| A02 | Cryptographic Failures |
| A03 | Injection (SQLi, command injection, XSS) |
| A04 | Insecure Design |
| A05 | Security Misconfiguration |
| A06 | Vulnerable and Outdated Components |
| A07 | Identification and Authentication Failures |
| A08 | Software and Data Integrity Failures |
| A09 | Security Logging and Monitoring Failures |
| A10 | Server-Side Request Forgery (SSRF) |
Ravindra Bagale's Tip
The OWASP Top 10 is not something to memorise – it is something to understand. Interviewers ask "Name the OWASP Top 10", but the real question is "How would you stop SQL injection?". If you know the concept and the fix, the names stick automatically. Every web developer should read this document.
Ravindra Bagale's Tip – मराठी
OWASP Top 10 पाठ करायचे नाही – समजून घ्यायचे. Interview मध्ये "OWASP Top 10 सांगा" विचारतात, पण खरा प्रश्न असतो "SQL injection कसा थांबवशील?". Concept आणि fix माहीत असेल तर नावे आपोआप लक्षात राहतात. हे document प्रत्येक web developer ने वाचले पाहिजे.
Ravindra Bagale's Tip – हिंदी
OWASP Top 10 रटना नहीं है – समझना है. Interview में "OWASP Top 10 बताओ" पूछते हैं, पर असली सवाल होता है "SQL injection कैसे रोकोगे?". Concept और fix पता हो तो नाम अपने-आप याद रहते हैं. यह document हर web developer को पढ़ना चाहिए.
Practice task
Open owasp.org and confirm the current Top 10 list. In your notes, write the ten categories and, beside each, one line in your own words about what it means.
Extended teaching notes
Why this lesson matters
Part 11 turns tool skills into professional defensive practice: web risks, cloud, SOC work, hardening, cryptography, Indian law and careers. Every example below stays inside systems you own or public teaching material.
Indian company (sample data)
Suppose we are a junior security engineer at an Infosys or TCS client project. You take this lesson's checklist, map it to three production services (for example a Spring Boot API, a Node.js portal and a Python job), and open tickets with evidence and owners.
Global practice
Follow public guidance from OWASP, CERT-In, CISA and cloud provider Well-Architected / security pillars. Cite them in reports.
Everyday analogy
A cricket team that only practises hitting but never fielding loses matches. Offence skills in a lab exist to improve fielding in real systems.
Apply across stacks
Wherever code appears, ask the same questions.
Java / Spring Boot
Parameterise queries, encode output, limit Actuator, patch dependencies.
.NET
EF Core parameters, HTTPS, Data Protection API, patch NuGet.
Node.js
helmet, parameterized SQL, npm audit, lockfiles.
Python
ORM, autoescape, pip-audit, Bandit.
Go / PHP / Ruby
Safe templates, prepared statements, govulncheck / composer audit / Brakeman.
nginx / Apache / Tomcat
Hide versions, TLS, least-open ports.
MySQL / PostgreSQL / MongoDB / Redis
No public ports, auth on, least-privilege users.
AWS / Azure / GCP
Roles not keys, private data stores, cloud logs on.
Defender worksheet
- Write a 5-line summary.
- Name one related public breach or advisory.
- Practise one safe command on a lab you own.
- Write the fix for a teammate.
Recap
- Permission first.
- Fix over spectacle.
- Evidence in notes.
Defender's worksheet (do this today)
- Write the lesson title and date.
- List three owned systems where it applies.
- Run one safe lab check and paste evidence.
- Write a two-sentence fix for a teammate.
- Note one CERT-In or CISA advisory that relates (title + date).
Indian workplace (sample)
At a Wipro or LTIMindtree client SOC, turn this lesson into one playbook step with an owner and a due date.
Global practice
Compare your notes with OWASP, CIS Benchmarks or a cloud Well-Architected security question. Write the overlap in five lines.
Family test
Explain the risk and the fix without jargon. If a parent or sibling can repeat the warning, you are ready to teach juniors.
Common mistakes
- Skipping permission.
- Tool collecting without fixing.
- Publishing lab screenshots that contain secrets.
- Treating encoding as encryption.
Recap
- Evidence, fix, owner, date.
- Own lab only.
Key terms for this page
- Control: a safeguard (patch, config, process).
- Finding: a weakness with evidence.
- Remediation: the fix and how you verified it.
- Scope: systems you are allowed to touch.
- Least privilege: only the access required for the task.
- Defence in depth: several controls in layers.
Mini case study
Suppose we are a junior engineer at Zoho or Freshworks (sample data). A weekly review asks each person to present one control from their area. You pick a control from this lesson, show a before/after screenshot from a lab, and list the production ticket you would open. That habit builds both skill and credibility.