HackCert
Intermediate 12 min read May 25, 2026

OWASP Top 10: ওয়েব অ্যাপ্লিকেশনের প্রধান ১০টি নিরাপত্তা দুর্বলতা এবং প্রতিরোধের উপায়!

OWASP Top 10 2021 এর সম্পূর্ণ বিশ্লেষণ - ওয়েব অ্যাপ্লিকেশনের সবচেয়ে সমালোচনামূলক নিরাপত্তা ঝুঁকি এবং কার্যকর প্রতিরোধ কৌশল।

Mohammad Saiful Islam
Application Security Engineer
share
OWASP Top 10: ওয়েব অ্যাপ্লিকেশনের প্রধান ১০টি নিরাপত্তা দুর্বলতা এবং প্রতিরোধের উপায়!
Overview

ওয়েব অ্যাপ্লিকেশন আজ আধুনিক ব্যবসার মেরুদণ্ড। ব্যাংকিং থেকে healthcare, e-commerce থেকে government services - সবকিছুই ওয়েব এর মাধ্যমে delivered হচ্ছে। এর সাথে সাথে cybercriminals এর জন্য এটি হয়ে উঠেছে সবচেয়ে আকর্ষণীয় target। প্রতি বছর ওয়েব applications এ পাওয়া vulnerabilities এর সংখ্যা millions ছাড়িয়ে যায়। এই বিশাল threat landscape এ navigation করার জন্য OWASP (Open Worldwide Application Security Project) Foundation ২০০৩ সাল থেকে Top 10 list প্রকাশ করে আসছে। এই list ওয়েব applications এর সবচেয়ে critical security risks identify করে এবং globally adopted standard হিসেবে স্বীকৃত। PCI DSS, ISO 27001 সহ অনেক compliance framework OWASP Top 10 কে reference করে। এই নিবন্ধে আমরা OWASP Top 10 2021 এর প্রতিটি category বিস্তারিতভাবে আলোচনা করব।

মূল ধারণা

OWASP Top 10 2021 হলো সর্বশেষ release যেখানে data analysis এবং community survey এর সমন্বয়ে list তৈরি হয়েছে। আগের 2017 version এর তুলনায় significant changes এসেছে। 2021 list এর top categories গুলো হলো:

A01:2021 - Broken Access Control: যা আগে fifth position এ ছিল এখন #1। এই category তে রয়েছে authorization failures, যেখানে users তাদের intended permissions এর বাইরে actions perform করতে পারে। উদাহরণস্বরূপ Insecure Direct Object References (IDOR), Privilege Escalation, CORS misconfiguration, Force browsing।

A02:2021 - Cryptographic Failures: পূর্বের "Sensitive Data Exposure" এর নতুন নাম। এতে cryptographic implementations এর flaws অন্তর্ভুক্ত: weak algorithms (MD5, SHA1), improper key management, missing encryption for sensitive data, deprecated TLS versions।

A03:2021 - Injection: পূর্বের #1 from 2017। এতে SQL Injection, NoSQL Injection, Command Injection, LDAP Injection, XPath Injection সব অন্তর্ভুক্ত। 2021 এ Cross-Site Scripting (XSS) ও এই category তে merged হয়েছে।

A04:2021 - Insecure Design: একটি নতুন category যা design phase এর security flaws focus করে। Threat modeling, secure design patterns, secure development lifecycle এর অভাব এই category তে অন্তর্ভুক্ত।

A05:2021 - Security Misconfiguration: Default configurations, incomplete configurations, open cloud storage, misconfigured HTTP headers, verbose error messages, unnecessary features enabled - সব এতে অন্তর্ভুক্ত। XML External Entities (XXE) যা আগে আলাদা category ছিল এখন এতে merged।

A06:2021 - Vulnerable and Outdated Components: Outdated libraries, unsupported software, vulnerable dependencies - modern applications এ third-party components extensive ব্যবহারের কারণে এটি critical।

A07:2021 - Identification and Authentication Failures: Brute force vulnerabilities, weak password policies, credential stuffing, session management failures - সব এতে আছে।

A08:2021 - Software and Data Integrity Failures: একটি নতুন category। Insecure deserialization, untrusted CDN, auto-update mechanisms এর integrity issues, supply chain attacks।

A09:2021 - Security Logging and Monitoring Failures: পূর্বের Insufficient Logging & Monitoring। Insufficient logging, missing audit trails, ineffective monitoring, slow incident response।

A10:2021 - Server-Side Request Forgery (SSRF): প্রথমবার Top 10 এ entry। এ attack এ attacker server কে unintended URLs request পাঠাতে force করে।

OWASP Top 10 এর methodology একটি hybrid approach - data analysis (CWE mappings) এবং community survey এর সমন্বয়। 8 categories data থেকে এবং 2 categories survey থেকে নির্বাচিত হয়।

বাস্তব উদাহরণ

প্রতিটি OWASP Top 10 category এর বাস্তব উদাহরণ দেখা যাক। Broken Access Control এর সবচেয়ে কুখ্যাত উদাহরণ ২০২১ এর Microsoft Power Apps data leak। প্রায় ৩৮ মিলিয়ন records (American Airlines, Ford, NYC public schools সহ) public APIs এর misconfigured permissions এর কারণে exposed হয়েছিল।

একটি practical IDOR exploitation scenario। একটি banking app এ user profile URL: /api/users/1234/profile। যদি application authorization properly check না করে, attacker URL এ অন্য user ID (1235, 1236) inject করে অন্য users এর data access করতে পারে।

Cryptographic Failures এর কুখ্যাত উদাহরণ ২০১৭ এর Equifax breach। ১৪৭ মিলিয়ন Americans এর sensitive data exposed হয়েছিল। Issue ছিল Apache Struts vulnerability (technically injection) এর সাথে data encryption at rest এর অভাব।

আরেকটি example LinkedIn 2012 breach যেখানে ১১৭ মিলিয়ন passwords leaked হয়েছিল unsalted SHA1 hashes এর কারণে। Modern computing power এ এই hashes দ্রুত cracked হয়ে যায়।

Injection attacks এর classic example SQL Injection। একটি login form এ:

  • Username: admin' OR '1'='1
  • Password: anything

যদি query parameterized না হয়, এটি authentication bypass করে। 2008 এ Heartland Payment Systems এর breach এ ১৩৪ মিলিয়ন credit card numbers compromise হয়েছিল SQL injection এর মাধ্যমে।

Cross-Site Scripting এর উদাহরণ: একটি comment form এ <script>alert(document.cookie)</script> inject করে যদি displayed হয়, session hijacking সম্ভব। 2014 এ eBay XSS vulnerability millions of users affect করেছিল।

Insecure Design এর উদাহরণ: একটি ticket booking application যেখানে rate limiting design phase এ consider করা হয়নি। Bot attacks এর কারণে tickets unauthorized parties এর কাছে যায়।

Security Misconfiguration: 2019 এ Capital One breach এ misconfigured AWS WAF এর কারণে SSRF attack সম্ভব হয়েছিল, যা ১০০ মিলিয়ন customer records expose করেছিল।

Vulnerable Components: 2017 এর Equifax breach এ মূল কারণ ছিল unpatched Apache Struts (CVE-2017-5638)। Patch available ছিল attack এর ২ মাস আগে।

Authentication Failures: ২০১৮ এর Marriott breach এ ৫০০ মিলিয়ন guests এর data compromise হয়েছিল। Attackers Starwood reservation system এ একটি Web Shell ব্যবহার করছিল প্রায় ৪ বছর ধরে।

Software and Data Integrity Failures: SolarWinds supply chain attack (2020) এর মাধ্যমে compromised software updates অনেক organizations কে affect করেছিল। 18,000 customers malicious update install করেছিল।

Logging and Monitoring Failures: Marriott breach 4 years undetected ছিল। Equifax incident discovery হতে months লেগেছিল। Average breach detection time এখনো 200+ days globally।

SSRF: 2019 Capital One breach SSRF এর textbook example। AWS metadata service থেকে credentials extract করে S3 buckets access করা হয়েছিল।

বাংলাদেশের প্রেক্ষাপটে একটি e-commerce platform এর penetration test বিবেচনা করা যাক। Tester প্রথমে authentication mechanism test করেন। Login form এ SQL injection try করেন - parameterized queries পাওয়া যায়, safe।

Then IDOR test: order URL /orders/12345 কে অন্য numbers এ change করে দেখেন। Application proper authorization check করছে।

Next, file upload test। PHP shell upload attempt - rejected। কিন্তু .htaccess file upload করে subsequently arbitrary file extensions execute করার চেষ্টা - vulnerable পাওয়া যায়।

API endpoint testing এ password reset functionality এ vulnerability পাওয়া যায়। Reset token JWT হিসেবে generated কিন্তু signature verification weak। Attacker JWT manipulate করে arbitrary user এর reset request initiate করতে পারে।

XXE test এ XML upload functionality এ external entity processing enabled পাওয়া যায়। File read এবং SSRF possible।

Component analysis এ application jQuery 1.8 ব্যবহার করছে যা multiple known vulnerabilities সহ।

Security headers analysis এ Content-Security-Policy missing, X-Frame-Options absent, HSTS not configured।

এই findings এর basis এ comprehensive report তৈরি করা হবে priority এবং remediation steps সহ।

আরেকটি interesting case 2023 এ MOVEit Transfer vulnerability (CVE-2023-34362)। SQL injection vulnerability ব্যবহার করে Cl0p ransomware group ২৬০০+ organizations এর data steal করেছিল। এতে US government agencies, BBC, British Airways সহ অনেকে affected।

Modern frameworks এর misuse এর কারণে OWASP Top 10 vulnerabilities দেখা যায়। React এ dangerouslySetInnerHTML এর improper use XSS create করে। GraphQL APIs এ over-fetching এবং improper authorization access control issues তৈরি করে।

Mobile applications এ OWASP Mobile Top 10 আলাদাভাবে maintained। Improper Platform Usage, Insecure Data Storage, Insecure Communication ইত্যাদি mobile-specific issues।

Cloud-native applications এ Container Security, Kubernetes misconfigurations নতুন challenges। OWASP Kubernetes Top 10 এই domain এ guidance দেয়।

প্রতিরোধ ও প্রতিকার

OWASP Top 10 vulnerabilities প্রতিরোধে comprehensive approach প্রয়োজন। Broken Access Control এর জন্য: Deny by default principle, Role-based access control (RBAC) বা Attribute-based access control (ABAC), Server-side authorization enforcement (never trust client), Logging access control failures, JWT validation including audience check।

Cryptographic Failures এর জন্য: Strong encryption algorithms (AES-256 for symmetric, RSA-3072+ or ECC for asymmetric), Proper key management (HSM, KMS), TLS 1.3 mandatory, bcrypt/Argon2 for passwords (never MD5/SHA1), Encryption at rest for sensitive data।

Injection প্রতিরোধে: Parameterized queries / Prepared statements (most important), ORM ব্যবহার (সাবধানে), Input validation (whitelist preferred), Output encoding context-specific, Stored procedures (with caution), LIMIT clauses to prevent mass disclosure।

XSS এর জন্য specifically: Content Security Policy (CSP), HTTPOnly cookies, Output encoding (HTML, JavaScript, CSS, URL contexts), Modern frameworks auto-escaping (React, Vue, Angular), DOMPurify-like libraries for HTML sanitization।

Insecure Design এর জন্য: Threat modeling early in SDLC, Security requirements documentation, Secure design patterns library, Reference architectures, Threat modeling tools (Microsoft Threat Modeling Tool, OWASP Threat Dragon)।

Security Misconfiguration এর জন্য: Hardening guides (CIS Benchmarks), Automated configuration management (Ansible, Puppet, Chef), Regular configuration audits, Minimal install (remove unused features), Security headers properly set, Cloud Security Posture Management (CSPM)।

Important Security Headers: Content-Security-Policy (CSP), Strict-Transport-Security (HSTS), X-Content-Type-Options: nosniff, X-Frame-Options: DENY, Referrer-Policy, Permissions-Policy।

Vulnerable Components এর জন্য: Software Bill of Materials (SBOM), Dependency scanning (Snyk, Dependabot, OWASP Dependency-Check), Regular updates with testing, Subscribe to security advisories, Remove unused dependencies, Monitor for End-of-Life components।

Authentication এর জন্য: Multi-factor authentication (MFA), Strong password policy (NIST guidelines), Account lockout after failed attempts, Credential stuffing protection, Secure session management, CAPTCHA for high-risk operations।

Software and Data Integrity Failures এর জন্য: Digital signatures verification, Subresource Integrity (SRI) for CDN resources, Code signing, CI/CD pipeline security, Trusted repositories only, Review of auto-update mechanisms।

Logging and Monitoring এর জন্য: Comprehensive logging strategy, Centralized log management (ELK, Splunk), SIEM deployment, Real-time alerting on critical events, Log retention policies, Tamper-resistant logging, Incident response procedures।

SSRF prevention: URL whitelist validation, Disable redirects on server-side requests, Network segmentation (apps shouldn't reach metadata services), Block private IP ranges (RFC 1918), Disable unused URL schemas (file://, gopher://, etc.)।

Secure Development Lifecycle (SDLC) integration critical। Security activities should be embedded throughout: Requirements gathering এ security requirements, Design এ threat modeling, Development এ secure coding standards, Testing এ SAST/DAST/IAST, Deployment এ security configuration validation, Operations এ continuous monitoring।

Static Application Security Testing (SAST) tools: SonarQube, Checkmarx, Fortify, Semgrep, GitHub CodeQL। Code এ vulnerabilities detect করে before deployment।

Dynamic Application Security Testing (DAST) tools: OWASP ZAP, Burp Suite Pro, Acunetix, AppScan। Running application এ vulnerabilities find করে।

Interactive Application Security Testing (IAST): Contrast Security, Seeker। SAST এবং DAST এর combination।

Software Composition Analysis (SCA): Snyk, WhiteSource, Black Duck। Third-party dependencies এর vulnerabilities track করে।

Web Application Firewalls (WAF): Cloudflare, AWS WAF, ModSecurity, Akamai Kona Site Defender। Runtime protection layer।

Runtime Application Self-Protection (RASP): Contrast Protect, Imperva RASP। Application এর inside থেকে protection।

Security Champions Program organizations এ effective। Each development team এ একজন security champion যিনি team এর security advocate।

Threat Modeling প্রতিটি new feature এর জন্য করতে হবে। STRIDE (Spoofing, Tampering, Repudiation, Information Disclosure, Denial of Service, Elevation of Privilege) methodology popular।

Bug Bounty Programs valuable supplementary security testing। HackerOne, Bugcrowd, Intigriti এর মাধ্যমে। Responsible disclosure policy clear করতে হবে।

Penetration Testing regular intervals এ - usually annually, এবং major changes এর পরে। Both internal team এবং external vendor mix।

Security Training developers এর জন্য essential। Secure Code Warrior, Pluralsight, OWASP cheat sheets, hands-on labs। Regular training cycles (annually minimum)।

OWASP Resources extensively use করতে হবে: OWASP ASVS (Application Security Verification Standard), OWASP Cheat Sheet Series, OWASP Testing Guide, OWASP Development Guide, OWASP Code Review Guide।

Compliance Considerations: PCI DSS, HIPAA, SOC 2, ISO 27001 - সব এ OWASP Top 10 reference। Compliance শুধু checklist নয়, security culture এর foundation।

Metrics এবং KPIs: Mean Time to Remediate (MTTR) vulnerabilities, vulnerability density per LOC, security defects escaping to production, false positive rates।

Incident Response Plan এ OWASP Top 10-related scenarios অন্তর্ভুক্ত থাকতে হবে। Specific playbooks for different attack types।

Vendor Risk Management: Third-party applications এবং services এর security posture assess করতে হবে। SOC 2 reports, security questionnaires, penetration test results review।

Key Takeaways

OWASP Top 10 ওয়েব application security এর একটি foundational framework যা প্রতিটি developer, security professional, এবং organization এর জন্য মৌলিক জ্ঞান। তবে শুধু Top 10 knowledge যথেষ্ট নয় - এটি একটি starting point মাত্র। Modern web applications এর complexity আরও gradual এবং deep security practices দাবি করে। Secure-by-design philosophy, Defense in Depth, Continuous Security এই foundation এর উপর গড়ে তুলতে হবে। OWASP Foundation এর resources comprehensive এবং free, যা প্রতিটি team কে production-ready secure applications গড়ে তুলতে সাহায্য করে। মনে রাখতে হবে - security একটি destination নয়, একটি continuous journey। যে organizations OWASP Top 10 কে একটি living document হিসেবে treat করে এবং তাদের development culture এ integrate করে, তারাই long-term সাফল্য অর্জন করে।

আপনার জ্ঞান যাচাই করতে প্রস্তুত? আজই HackCert-এ OWASP Top 10 MCQ Quiz-টি দিন!

Related articles

back to all articles