OWASP Top 10 Security Vulnerabilities
Expert guidance for identifying, preventing, and remediating the most critical web application security risks based on OWASP Top 10 2021.
When to Use This Skill
- Conducting security audits and code reviews
- Implementing secure coding practices in new features
- Reviewing authentication and authorization systems
- Assessing input validation and sanitization
- Evaluating third-party dependencies for vulnerabilities
- Designing security controls and defense-in-depth strategies
- Preparing for security certifications or compliance audits
- Investigating security incidents or suspicious behavior
OWASP Top 10 2021 Overview
Ranked by Risk Severity:
- A01 - Broken Access Control (↑ from #5)
- A02 - Cryptographic Failures (formerly Sensitive Data Exposure)
- A03 - Injection (↓ from #1)
- A04 - Insecure Design (NEW)
- A05 - Security Misconfiguration
- A06 - Vulnerable and Outdated Components
- A07 - Identification and Authentication Failures
- A08 - Software and Data Integrity Failures (NEW)
- A09 - Security Logging and Monitoring Failures
- A10 - Server-Side Request Forgery (SSRF) (NEW)
Quick Reference
Load detailed guidance for each vulnerability:
| Vulnerability |
Reference File |
| Broken Access Control |
skills/owasp-top-10/references/broken-access-control.md |
| Cryptographic Failures |
skills/owasp-top-10/references/cryptographic-failures.md |
| Injection |
skills/owasp-top-10/references/injection.md |
| Insecure Design |
skills/owasp-top-10/references/insecure-design.md |
| Security Misconfiguration |
skills/owasp-top-10/references/security-misconfiguration.md |
| Vulnerable Components |
skills/owasp-top-10/references/vulnerable-components.md |
| Authentication Failures |
skills/owasp-top-10/references/authentication-failures.md |
| Integrity Failures |
skills/owasp-top-10/references/integrity-failures.md |
| Logging & Monitoring |
skills/owasp-top-10/references/logging-monitoring.md |
| SSRF |
skills/owasp-top-10/references/ssrf.md |
| Prevention Strategies |
skills/owasp-top-10/references/prevention-strategies.md |
| Assessment Workflow |
skills/owasp-top-10/references/assessment-workflow.md |
Security Audit Workflow
- Identify Scope: Determine application components and attack surface
- Select Vulnerabilities: Choose relevant OWASP categories based on features
- Load Reference: Read appropriate reference file(s) for detailed patterns
- Analyze Code: Review code against vulnerable and secure patterns
- Document Findings: Record vulnerabilities with severity and remediation
- Verify Fixes: Test that remediations properly address issues
- Test Security: Run automated security testing (SAST, DAST, SCA)
Core Security Principles
Defense in Depth
- Layer security controls at network, application, data, and monitoring levels
- Ensure failure of one control doesn't compromise entire system
Secure by Default
- Deny all access by default, explicitly grant permissions
- Fail securely (errors don't expose sensitive information)
- Minimize attack surface (disable unused features)
- Apply least privilege to all accounts and services
Input Validation
- Validate type, length, format, and allowed values
- Use allow-lists over deny-lists
- Sanitize for specific context (SQL, HTML, shell, etc.)
- Never trust client input
Common Mistakes
- Trusting User Input: Always validate and sanitize all user-supplied data
- Rolling Your Own Crypto: Use established libraries (bcrypt, AES-256)
- Exposing Errors: Log detailed errors internally, show generic messages to users
- Missing Authorization: Check permissions on every request, not just UI
- Weak Session Management: Use secure, httpOnly, sameSite cookies with HTTPS
- Ignoring Dependencies: Regularly audit and update third-party libraries
- No Logging: Log security events for detection and incident response
- Default Configurations: Harden all systems, disable defaults
Security Testing Tools
SAST (Static): SonarQube, Semgrep, ESLint security plugins
DAST (Dynamic): OWASP ZAP, Burp Suite
SCA (Dependencies): npm audit, Snyk, Dependabot
Secrets Scanning: GitGuardian, TruffleHog
Penetration Testing: Metasploit, Kali Linux tools
Resources
1---
2name: owasp-top-10-2
3description: OWASP Top 10 security vulnerabilities with detection and remediation patterns. Use when conducting security audits, implementing secure coding practices, or reviewing code for common security vulnerabilities.
4keywords:
5 - CSRF
6 - OWASP
7 - SQL injection
8 - XSS
9 - authentication failure
10 - broken access control
11 - cryptographic failure
12 - injection
13 - security audit
14 - security vulnerability
15file_patterns:
16 - '**/*secret*.py'
17 - '**/*secret*.ts'
18 - '**/auth/**'
19 - '**/security/**'
20confidence: 0.9
21metadata:
22 source: https://skillmd.com/skills/aibot88/owasp-top-10-2
23---
24
25# OWASP Top 10 Security Vulnerabilities
26
27Expert guidance for identifying, preventing, and remediating the most critical web application security risks based on OWASP Top 10 2021.
28
29## When to Use This Skill
30
31- Conducting security audits and code reviews
32- Implementing secure coding practices in new features
33- Reviewing authentication and authorization systems
34- Assessing input validation and sanitization
35- Evaluating third-party dependencies for vulnerabilities
36- Designing security controls and defense-in-depth strategies
37- Preparing for security certifications or compliance audits
38- Investigating security incidents or suspicious behavior
39
40## OWASP Top 10 2021 Overview
41
42**Ranked by Risk Severity:**
43
441. **A01** - Broken Access Control (↑ from #5)
452. **A02** - Cryptographic Failures (formerly Sensitive Data Exposure)
463. **A03** - Injection (↓ from #1)
474. **A04** - Insecure Design (NEW)
485. **A05** - Security Misconfiguration
496. **A06** - Vulnerable and Outdated Components
507. **A07** - Identification and Authentication Failures
518. **A08** - Software and Data Integrity Failures (NEW)
529. **A09** - Security Logging and Monitoring Failures
5310. **A10** - Server-Side Request Forgery (SSRF) (NEW)
54
55## Quick Reference
56
57Load detailed guidance for each vulnerability:
58
59| Vulnerability | Reference File |
60|---|---|
61| **Broken Access Control** | `skills/owasp-top-10/references/broken-access-control.md` |
62| **Cryptographic Failures** | `skills/owasp-top-10/references/cryptographic-failures.md` |
63| **Injection** | `skills/owasp-top-10/references/injection.md` |
64| **Insecure Design** | `skills/owasp-top-10/references/insecure-design.md` |
65| **Security Misconfiguration** | `skills/owasp-top-10/references/security-misconfiguration.md` |
66| **Vulnerable Components** | `skills/owasp-top-10/references/vulnerable-components.md` |
67| **Authentication Failures** | `skills/owasp-top-10/references/authentication-failures.md` |
68| **Integrity Failures** | `skills/owasp-top-10/references/integrity-failures.md` |
69| **Logging & Monitoring** | `skills/owasp-top-10/references/logging-monitoring.md` |
70| **SSRF** | `skills/owasp-top-10/references/ssrf.md` |
71| **Prevention Strategies** | `skills/owasp-top-10/references/prevention-strategies.md` |
72| **Assessment Workflow** | `skills/owasp-top-10/references/assessment-workflow.md` |
73
74## Security Audit Workflow
75
761. **Identify Scope**: Determine application components and attack surface
772. **Select Vulnerabilities**: Choose relevant OWASP categories based on features
783. **Load Reference**: Read appropriate reference file(s) for detailed patterns
794. **Analyze Code**: Review code against vulnerable and secure patterns
805. **Document Findings**: Record vulnerabilities with severity and remediation
816. **Verify Fixes**: Test that remediations properly address issues
827. **Test Security**: Run automated security testing (SAST, DAST, SCA)
83
84## Core Security Principles
85
86### Defense in Depth
87- Layer security controls at network, application, data, and monitoring levels
88- Ensure failure of one control doesn't compromise entire system
89
90### Secure by Default
91- Deny all access by default, explicitly grant permissions
92- Fail securely (errors don't expose sensitive information)
93- Minimize attack surface (disable unused features)
94- Apply least privilege to all accounts and services
95
96### Input Validation
97- Validate type, length, format, and allowed values
98- Use allow-lists over deny-lists
99- Sanitize for specific context (SQL, HTML, shell, etc.)
100- Never trust client input
101
102## Common Mistakes
103
1041. **Trusting User Input**: Always validate and sanitize all user-supplied data
1052. **Rolling Your Own Crypto**: Use established libraries (bcrypt, AES-256)
1063. **Exposing Errors**: Log detailed errors internally, show generic messages to users
1074. **Missing Authorization**: Check permissions on every request, not just UI
1085. **Weak Session Management**: Use secure, httpOnly, sameSite cookies with HTTPS
1096. **Ignoring Dependencies**: Regularly audit and update third-party libraries
1107. **No Logging**: Log security events for detection and incident response
1118. **Default Configurations**: Harden all systems, disable defaults
112
113## Security Testing Tools
114
115**SAST (Static)**: SonarQube, Semgrep, ESLint security plugins
116**DAST (Dynamic)**: OWASP ZAP, Burp Suite
117**SCA (Dependencies)**: npm audit, Snyk, Dependabot
118**Secrets Scanning**: GitGuardian, TruffleHog
119**Penetration Testing**: Metasploit, Kali Linux tools
120
121## Resources
122
123- **OWASP Top 10 2021**: https://owasp.org/Top10/
124- **OWASP Cheat Sheets**: https://cheatsheetseries.owasp.org/
125- **OWASP ASVS**: Application Security Verification Standard
126- **CWE Top 25**: Common Weakness Enumeration
127- **NIST Cybersecurity Framework**: https://www.nist.gov/cyberframework
128- **CVE Database**: https://cve.mitre.org/
129- **Snyk Vulnerability DB**: https://snyk.io/vuln/